Add some very basic backslash replacement when attempting to decode user data in…
… a UserSearch instance. refs #1576
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -180,6 +180,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable { | ... | @@ -180,6 +180,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable { |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | list($user_id, $user_string) = mysql_fetch_row($this->result); | 182 | list($user_id, $user_string) = mysql_fetch_row($this->result); |
| 183 | $user_string = str_ireplace("\\'", "\\\\'", $user_string); | ||
| 183 | $json_data = json_decode($user_string, true); | 184 | $json_data = json_decode($user_string, true); |
| 184 | if (json_last_error() != JSON_ERROR_NONE) { | 185 | if (json_last_error() != JSON_ERROR_NONE) { |
| 185 | return false; | 186 | return false; | ... | ... |
-
Please register or sign in to post a comment