mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-09-23 18:30:21 +00:00
* (bug 14154) Captcha domain whitelist regexes now anchored, fixing spammable hole
This commit is contained in:
parent
1ca07e728a
commit
4f1281fc9c
|
@ -408,7 +408,7 @@ class SimpleCaptcha {
|
|||
//$regex = 'http://+[a-z0-9_\-.]*(' . implode( '|', $lines ) . ')';
|
||||
//return '/' . str_replace( '/', '\/', preg_replace('|\\\*/|', '/', $regex) ) . '/Si';
|
||||
$regexes = '';
|
||||
$regexStart = '/http:\/\/+[a-z0-9_\-.]*(';
|
||||
$regexStart = '/^https?:\/\/+[a-z0-9_\-.]*(';
|
||||
$regexEnd = ')/Si';
|
||||
$regexMax = 4096;
|
||||
$build = false;
|
||||
|
|
Loading…
Reference in a new issue