diff --git a/4chan_x.js b/4chan_x.js index e35050d47..8f4ddb955 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1153,10 +1153,10 @@ challenge = $('input[name=recaptcha_challenge_field]').value; src = "http://www.google.com/recaptcha/api/image?c=" + challenge; c = d.cookie; - name = (m = c.match(/4chan_name=([^;]+)/)) ? unescape(m[1]) : ''; - mail = (m = c.match(/4chan_email=([^;]+)/)) ? unescape(m[1]) : ''; - pass = (m = c.match(/4chan_pass=([^;]+)/)) ? unescape(m[1]) : $('input[name=pwd]').value; - html = "
Quick Reply X
"; + name = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; + mail = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; + pass = (m = c.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value; + html = "
Quick Reply X
"; dialog = ui.dialog('qr', { top: '0px', left: '0px' diff --git a/script.coffee b/script.coffee index d85d04d1f..35c78cf4e 100644 --- a/script.coffee +++ b/script.coffee @@ -910,12 +910,12 @@ qr = challenge = $('input[name=recaptcha_challenge_field]').value src = "http://www.google.com/recaptcha/api/image?c=#{challenge}" c = d.cookie - name = if m = c.match(/4chan_name=([^;]+)/) then unescape m[1] else '' - mail = if m = c.match(/4chan_email=([^;]+)/) then unescape m[1] else '' - pass = if m = c.match(/4chan_pass=([^;]+)/) then unescape m[1] else $('input[name=pwd]').value + name = if m = c.match(/4chan_name=([^;]+)/) then decodeURIComponent m[1] else '' + mail = if m = c.match(/4chan_email=([^;]+)/) then decodeURIComponent m[1] else '' + pass = if m = c.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value html = "
- + Quick Reply X @@ -924,13 +924,13 @@ qr = -
+
-
+
"