sleepy909 / cpassman

Automatically exported from code.google.com/p/cpassman
1 stars 0 forks source link

Uncaught SyntaxError: Unexpected token Ç #274

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I try to create a new password entry in a folder

What is the expected output? What do you see instead?
It generate a JS error : 
Uncaught SyntaxError: Unexpected token Ç            jquery-1.6.2.min.js:16
e.extend.parseJSON                                                
jquery-1.6.2.min.js:16
(anonymous function)                                             index.php:1319
f.extend._Deferred.e.resolveWith                            
jquery-1.6.2.min.js:16
w                                                                            
jquery-1.6.2.min.js:18
f.support.ajax.f.ajaxTransport.send.d                     jquery-1.6.2.min.js:18

What version of the product are you using?
2.1.8

On what operating system? With what Browser (IEx, FFx, ...)
OSX 10.7 PHP 5.3.10 Chrome FFx

Please provide any additional information below.

Error is on this line : data = $.parseJSON(aes_decrypt(data));

//Send query
            $.post(
                "sources/items.queries.php",
                {
                    type    : "new_item",
                    data    : aes_encrypt(data),
                    key     : "69WT8oGdRQKBjvqIGlZctfWz8u60We61Bg5kfkIhPgqZUZqlKV"
                },
                function(data){
                    //decrypt data
                    data = $.parseJSON(aes_decrypt(data));

Original issue reported on code.google.com by xene...@gmail.com on 9 Aug 2012 at 10:32