r39165 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39164‎ | r39165 | r39166 >
Date:19:05, 11 August 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
do HTML escaping of default text only once ...
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php
@@ -50,7 +50,7 @@
5151 $this->readParameters($params,$outputmode);
5252 if ($results->getCount() == 0) { // no results, take over processing
5353 if (!$results->hasFurtherResults()) {
54 - return htmlspecialchars($this->mDefault) . $this->getErrorString($results);
 54+ return $this->mDefault . $this->getErrorString($results);
5555 } elseif ($this->mInline) {
5656 $label = $this->mSearchlabel;
5757 if ($label === NULL) { //apply defaults

Status & tagging log