Last modified: 2014-06-23 16:07:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51694, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49694 - $wgSpamRegex bypassed when "Add Topic" is used with URL in Subject/headline
$wgSpamRegex bypassed when "Add Topic" is used with URL in Subject/headline
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.21.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-17 14:04 UTC by Dennis Acevedo
Modified: 2014-06-23 16:07 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dennis Acevedo 2013-06-17 14:04:48 UTC
I have $wgSpamRegex set up to "Block ALL external links":

$wgSpamRegex = "/http:\/\//";

However, if someone uses the "Add Topic" tab, and puts an external link as the "Subject/headline", then $wgSpamRegex gets bypassed.

It does still block any external links that are put in the body of the "Add Topic" page.

See:

http://www.mediawiki.org/wiki/Manual_talk:$wgSpamRegex#Using_.22Add_Topic.22_tab_bypasses_this_filter.2C_i.e._http:.2F.2Fwww.mediawiki.org.2Fw.2Findex.php.3Ftitle.3DManual_talk:.24wgSpamRegex
Comment 1 Gerrit Notification Bot 2013-07-24 07:49:39 UTC
Change 75556 had a related patch set uploaded by IAlex:
(bug 49694) Apply $wgSpamRegex to the new section name in action=edit&section=new

https://gerrit.wikimedia.org/r/75556
Comment 2 Gerrit Notification Bot 2013-07-26 15:02:34 UTC
Change 75556 merged by jenkins-bot:
(bug 49694) Apply $wgSpamRegex to the new section name in action=edit&section=new

https://gerrit.wikimedia.org/r/75556
Comment 3 Matthew Flaschen 2013-08-03 09:28:21 UTC
See the Gerrit.  The basic commit seems fine, but it could be commented better.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links