Last modified: 2013-12-11 00:36:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 57054 - Add iw_regex field
Add iw_regex field
Status: RESOLVED DUPLICATE of bug 41618
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-14 15:24 UTC by Nathan Larson
Modified: 2013-12-11 00:36 UTC (History)
2 users (show)

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


Attachments

Description Nathan Larson 2013-11-14 15:24:19 UTC
As Dantman points out, "Interwiki patterns also do not support generic URLs very well. They are primarily intended for other wikis and hence MediaWiki currently does some encoding of the value after the prefix: in ways that make it unusable for adding new sites generically, for example see what it does to a google: interwiki link." This would present a barrier to using the interwiki table as a spam whitelist for those URLs. https://www.mediawiki.org/wiki/Alternatives_to_applying_the_same_nofollow/dofollow_value_to_all_external_links#Make_more_use_of_interwiki_links

We could add a serialized field to the interwiki table that uses regular expressions to change, say, spaces to plus signs, if that's how the website formats its URLs. I'm not all that skilled with regular expressions, and my use cases are usually pretty simple, so I just use https://www.mediawiki.org/wiki/Extension:InterwikiRegex , which uses str_replace. Regex would be more powerful, though.
Comment 1 db [inactive,noenotif] 2013-11-16 10:54:00 UTC
This is not about a problem with database, but I have no idea of a better component. Mabye add 'schema-changes' key word to reflect to need on the database.

bug 15274 is about a problem with + vs. space
Comment 2 Nathan Larson 2013-12-11 00:36:15 UTC

*** This bug has been marked as a duplicate of bug 41618 ***

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


Navigation
Links