Last modified: 2012-04-12 13:54:14 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 T30949, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28949 - \n not escaped in /includes/OutputPage.php
\n not escaped in /includes/OutputPage.php
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.16.x
All All
: Unprioritized trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-12 22:37 UTC by Dimitar Dimitrov
Modified: 2012-04-12 13:54 UTC (History)
1 user (show)

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


Attachments
patch to swap double and single quotes in /includes/OutputPage.php (564 bytes, patch)
2011-05-12 22:37 UTC, Dimitar Dimitrov
Details

Description Dimitar Dimitrov 2011-05-12 22:37:33 UTC
Created attachment 8532 [details]
patch to swap double and single quotes in /includes/OutputPage.php

There is an unescaped \n because of single quotes on line 1958 in /includes/OutputPage.php.

It is shown when you lock the database with $wgReadonly (in LocalSettings.php) and then visit the preferences page - Special:Preferences.

This is what was changed because of bug 19226: r1=61054&r2=61055">http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_0beta1/phase3/includes/OutputPage.php?r1=61054&r2=61055&

bug 19226: https://bugzilla.wikimedia.org/show_bug.cgi?id=19226

To fix it '<div class="mw-readonly-error">\n$1</div>' should be "<div class='mw-readonly-error'>\n$1</div>"

OutputPage.php is different in MediaWiki version 1.17.0beta1 and when I installed it the bug wasn't there. 

There is a possible solution as patch.

Cheers.
Comment 1 Dimitar Dimitrov 2011-05-12 22:44:59 UTC
The link to the diff should be

r1=61054&r2=61055">http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_0beta1/phase3/includes/OutputPage.php?r1=61054&r2=61055&

Sorry.
Comment 2 Bawolff (Brian Wolff) 2011-05-12 23:01:04 UTC
What is your patch against (you're linking to 1.16.0beta1 - thats a fairly old version, patches should be against the latest version [trunk]).


Additionally the issue does not appear to be present on current trunk.
Comment 3 Dimitar Dimitrov 2011-05-12 23:29:34 UTC
The patch is for 1.16.5, the bug was introduced in 1.16.0beta1. 
I will mark this as resolved.

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


Navigation
Links