sebsauvage / ZeroBin

A minimalist, opensource online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
http://sebsauvage.net/wiki/doku.php?id=php:zerobin
952 stars 213 forks source link

custom json code parse the page after clicking send button #101

Open sreeragu opened 8 years ago

sreeragu commented 8 years ago

Hello,

I have been trying to send a custom json to my friend, but it seems like a json exceeds a single line in Zerobin is parsing the output page. You can view the same here.


http://sebsauvage.net/paste/?deb5d325190d1de5#5H5mur18KQLlQVGt0izFLxE5Xk6NcRtVrJMbOHSbxZ4=

You can recreate the issue by pasting the following code (an example) and try sending that.


"key0":"value","key1":"value","key2":"value","key3":"value","key4":"value","key5":"value","key6":"value","key7":"value","key8":"value","key9":"value","key10":"value","key11":"value","key12":"value","key13":"value","key14":"value","key15":"value","key16":"value","key17":"value","key18":"value","key19":"value","key20":"value","key21":"value","key22":"value","key23":"value","key24":"value","key25":"value"

Please respond.

elrido commented 8 years ago

Can you recreate this issue in 0.22, i.e. at snip? If you yes, please send a link and I'll look how it can be addressed in that version.