r38257 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38256‎ | r38257 | r38258 >
Date:21:37, 30 July 2008
Author:nad
Status:old
Tags:
Comment:
should use htmlspecialchars here
Modified paths:
  • /trunk/extensions/CSS/CSS.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CSS/CSS.php
@@ -13,7 +13,7 @@
1414
1515 if (!defined('MEDIAWIKI')) die('Not an entry point.');
1616
17 -define('CSS_VERSION', '1.0.4, 2008-06-01');
 17+define('CSS_VERSION', '1.0.5, 2008-07-31');
1818
1919 $wgCSSMagic = "css";
2020 $wgExtensionFunctions[] = 'wfSetupCSS';
@@ -41,7 +41,7 @@
4242 if (ereg('\\{', $css)) {
4343
4444 # Inline CSS
45 - $css = htmlspecialchars(trim(Sanitizer::checkCss($css)));
 45+ $css = trim(Sanitizer::checkCss($css));
4646 $parser->mOutput->addHeadItem( <<<EOT
4747 <style type="text/css">
4848 /*<![CDATA[*/

Follow-up revisions

RevisionCommit summaryAuthorDate
r38260Revert r38257 "should use htmlspecialchars here" -- this *removes* a call to ...brion21:43, 30 July 2008

Status & tagging log