Last modified: 2010-05-15 15:41:13 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 T9425, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7425 - preceeding whitespace in [[...]] breaks subpages and should be trimmed
preceeding whitespace in [[...]] breaks subpages and should be trimmed
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.7.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-27 15:14 UTC by spambox
Modified: 2010-05-15 15:41 UTC (History)
0 users

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


Attachments

Description spambox 2006-09-27 15:14:12 UTC
Linking to a subpage [[ /like this]] or [[ /like this ]] puts the page in Main
due to the preceeding whitespace.

Yes, this is extremely bad style, but the software should be smarter than to
create a non-subpage potentially in the wrong namespace when newbies are likely
to make this error.

In fact, I can see no good reason at all for NOT trimming pre and post
whitespace from poorly formed wikilinks like this, unless the style is
considered so bad that the links should simply not work at all.  In either case,
the current non-trimming system is a bad idea.
Comment 1 spambox 2006-09-27 15:30:49 UTC
Output of Special:Version from the wiki where this is happening --
http://www.umasswiki.com/ -- I have also tested and confirmed this on a wiki
with fewer extensions running 1.7.1 on the same webhost.

# : 1.7.1
# PHP: 5.1.2 (cgi-fcgi)
# MySQL: 4.1.14-Debian_5-log
# Extensions:

    * Other:
          o Bad Behavior (version 2.0.6), Detects and blocks unwanted Web
accesses, by Michael Hampton
          o SpamBlacklist by Tim Starling 
    * Extension functions:
          o bb2_mediawiki_entry, ceSetup, wfassExtension and wfNamespacePermissions 
    * Parser extension tags:
          o <adsensesearch> and <pre> 

# Hooks:

    * AbortNewAccount: (SimpleCaptcha, confirmUserCreate)
    * EditFilter: (SimpleCaptcha, confirmEdit)
    * ParserAfterTidy: bb2_mediawiki_timer
    * UserCreateForm: (SimpleCaptcha, injectUserCreate)
    * userCan: namespacePermissionsCheckNamespace 

Comment 2 Jimmy Collins 2006-09-27 17:08:23 UTC
Fixed in r16674.

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


Navigation
Links