mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
Merge pull request #1827 from seltonmt012/fix/locale-string-invalid-utf8
fix(es_extended/shared): return false instead of raising on invalid utf8
This commit is contained in:
@@ -186,6 +186,10 @@ function ESX.IsValidLocaleString(str, allowDigits)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not utf8.len(str) then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
local locale = string.lower(Config.Locale)
|
local locale = string.lower(Config.Locale)
|
||||||
|
|
||||||
local defaultRanges ={
|
local defaultRanges ={
|
||||||
|
|||||||
Reference in New Issue
Block a user