mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 22:01:29 +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
|
||||
end
|
||||
|
||||
if not utf8.len(str) then
|
||||
return false
|
||||
end
|
||||
|
||||
local locale = string.lower(Config.Locale)
|
||||
|
||||
local defaultRanges ={
|
||||
|
||||
Reference in New Issue
Block a user