r40524 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40523‎ | r40524 | r40525 >
Date:10:43, 6 September 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Reject strip markers in inputs, even in MW 1.11 (where \x07 was still used)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php
@@ -61,7 +61,8 @@
6262 // e.g. math. In general, we are not prepared to handle such content properly, and we
6363 // also have no means of obtaining the user input at this point. Hence the assignement
6464 // just fails.
65 - if (strpos($value,"\x7f") === false) {
 65+ // Note: \x07 was used in MediaWiki 1.11.0, \x7f is used now
 66+ if ((strpos($value,"\x7f") === false) && (strpos($value,"\x07") === false)) {
6667 $this->parseUserValue($value); // may set caption if not set yet, depending on datavalue
6768 $this->m_isset = true;
6869 } else {

Status & tagging log