Fix one-word-captcha.

Thank !MyImoutol6 for this.
This commit is contained in:
Nicolas Stepien 2012-08-23 01:33:59 +02:00
parent 1ed515dd20
commit 47c6bbd350
3 changed files with 4 additions and 2 deletions

View File

@ -2435,7 +2435,7 @@
mode: 'regist',
pwd: (m = d.cookie.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value,
recaptcha_challenge_field: challenge,
recaptcha_response_field: response + ' '
recaptcha_response_field: response.replace(/^\s+/, 'a ').replace(/\s+$/, ' a')
};
callbacks = {
onload: function() {

View File

@ -1,4 +1,6 @@
master
- Mayhem
Fix one-word-captcha, you'll need to leave a space for the fake word now.
2.34.6
- Mayhem

View File

@ -1896,7 +1896,7 @@ QR =
mode: 'regist'
pwd: if m = d.cookie.match(/4chan_pass=([^;]+)/) then decodeURIComponent m[1] else $('input[name=pwd]').value
recaptcha_challenge_field: challenge
recaptcha_response_field: response + ' '
recaptcha_response_field: response.replace(/^\s+/, 'a ').replace /\s+$/, ' a'
callbacks =
onload: ->