Last modified: 2014-05-24 10:57:16 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 T48998, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46998 - Bail out early if $wgArticlePath is non-absolute
Bail out early if $wgArticlePath is non-absolute
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.0
All All
: Low trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-08 00:28 UTC by Daniel Friesen
Modified: 2014-05-24 10:57 UTC (History)
2 users (show)

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


Attachments

Description Daniel Friesen 2013-04-08 00:28:09 UTC
Setting $wgArticlePath to something like "wiki/$1" accidentally can cause a lot of hassle to people setting up short urls.

There is absolutely no valid reason to set $wgArticlePath to a relative path. We should make Setup.php or some other part of MW bail out early with an informative error message if it is not absolute.
Comment 1 Gerrit Notification Bot 2014-05-24 10:57:14 UTC
Change 135196 had a related patch set uploaded by devunt:
Validates wgArticlePath does start with slash (/).

https://gerrit.wikimedia.org/r/135196

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


Navigation
Links