cleanup, error pages
This commit is contained in:
@@ -625,7 +625,7 @@ String trim(String raw)
|
||||
s64 len = raw.length();
|
||||
s64 start_pos = 0;
|
||||
s64 end_pos = len - 1;
|
||||
if(len == 0 || (len == 1 && isspace((unsigned char)raw[0])))
|
||||
if(len == 0)
|
||||
return("");
|
||||
while(start_pos < len && isspace((unsigned char)raw[start_pos]))
|
||||
start_pos++;
|
||||
@@ -2308,7 +2308,7 @@ String json_decode_String(String s, u32& i, char termination_char)
|
||||
result.append(1, '\'');
|
||||
break;
|
||||
case('u'):
|
||||
if(i <= s.length() && s.length() - i >= 5 && json_decode_unicode_escape(s, i, result))
|
||||
if(s.length() - i >= 5 && json_decode_unicode_escape(s, i, result))
|
||||
break;
|
||||
return(result);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user