inline-markdown-editor icon indicating copy to clipboard operation
inline-markdown-editor copied to clipboard

Attempt at encoding fixes - testing in progress

Open jywarren opened this issue 7 years ago • 2 comments

Browser testing showed that the before and after parameters submitted vary a little in encoding -- for example, before preserves parentheses, but after encodes them:

https://gist.github.com/jywarren/b10ec26bf6f491d26204f0812be6450e/revisions

This test is trying to mock the AJAX response to test that out somehow. Incomplete! But not sure this is causing trouble anyways...

jywarren avatar Jul 11 '17 13:07 jywarren

@jywarren The parenthesis were somehow preserved in my case. Can you do a quick check on your local and see if this still persists?

Netcat logs

Listening on [127.0.0.1] (family 0, port 4444)
Connection from localhost 46378 received!
POST / HTTP/1.1
Host: 127.0.0.1:4444
Connection: keep-alive
Content-Length: 187
Accept: */*
Origin: http://127.0.0.1:5555
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
DNT: 1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://127.0.0.1:5555/examples/
Accept-Encoding: gzip, deflate, br
Accept-Language: en

before=%0A++++++%23%23%23+Hello%2C+W(o)rld+This+is+a+paragraph.+*+this+*+is+*+a+*+list%0A++++&after=++++++%23%23%23+Hello%2C+W(o)rld+This+is+not+a+paragraph.+*+this+*+is+*+a+*+list%0A++++

rexagod avatar Jan 25 '19 01:01 rexagod

Hmm, were the tests i wrote in here way back when sufficient to replicate the error?

jywarren avatar Feb 06 '19 22:02 jywarren