Close #704. Thanks @SlashG.
This commit is contained in:
parent
58f40bf917
commit
c5ef9edf31
@ -2404,6 +2404,11 @@
|
||||
QR.captcha.count(captchas.length);
|
||||
if (!response) {
|
||||
err = 'No valid captcha.';
|
||||
} else {
|
||||
response = response.trim();
|
||||
if (!/\s/.test(response)) {
|
||||
response = "" + response + " " + response;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (err) {
|
||||
@ -2435,7 +2440,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.replace(/^\s+/, 'a ').replace(/\s+$/, ' a')
|
||||
recaptcha_response_field: response
|
||||
};
|
||||
callbacks = {
|
||||
onload: function() {
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
master
|
||||
- Mayhem
|
||||
One-word-captcha: you don't need to input an extra space anymore, the true word will be duplicated.
|
||||
|
||||
2.34.7
|
||||
- Mayhem
|
||||
|
||||
@ -1863,6 +1863,11 @@ QR =
|
||||
QR.captcha.count captchas.length
|
||||
unless response
|
||||
err = 'No valid captcha.'
|
||||
else
|
||||
response = response.trim()
|
||||
# one-word-captcha:
|
||||
# If there's only one word, duplicate it.
|
||||
response = "#{response} #{response}" unless /\s/.test response
|
||||
|
||||
if err
|
||||
# stop auto-posting
|
||||
@ -1896,7 +1901,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.replace(/^\s+/, 'a ').replace /\s+$/, ' a'
|
||||
recaptcha_response_field: response
|
||||
|
||||
callbacks =
|
||||
onload: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user