Last modified: 2013-07-08 10:05:08 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 T52752, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50752 - 'nowiki' specified by parserfunction return values doesn't do real nowiki
'nowiki' specified by parserfunction return values doesn't do real nowiki
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-04 15:28 UTC by Liangent
Modified: 2013-07-08 10:05 UTC (History)
0 users

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


Attachments

Description Liangent 2013-07-04 15:28:20 UTC
Currently it's:

} elseif ( $nowiki && ( $this->ot['html'] || $this->ot['pre'] ) ) {
        # Escape nowiki-style return values
        $text = wfEscapeWikiText( $text );

while real nowiki = insertStripItem which disables language conversion for given text too.
Comment 1 Liangent 2013-07-04 15:36:49 UTC
Hmm just realize there's a isHTML for insertStripItem but it's not that semantic and requires doing htmlspecialchars() myself first, which may be forgotten by people sometimes. Anyway it's possible to workaround (isHTML + htmlspecialchars) so feel free to close it if someone thinks it's too interrupting to change the current behavior.

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


Navigation
Links