changeset 651 | ce9d78d7251d |
parent 585 | 35e91d16ecf5 |
child 688 | f2a824ce5f18 |
--- a/includes/clientside/static/login.js Sun Jul 20 13:32:04 2008 -0400 +++ b/includes/clientside/static/login.js Tue Jul 22 14:49:18 2008 -0500 @@ -321,7 +321,7 @@ { // parse response var response = String(ajax.responseText + ''); - if ( response.substr(0, 1) != '{' ) + if ( !check_json_response(response) ) { handle_invalid_json(response); return false;