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