https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102060
Revision: 102060
Author: foxtrott
Date: 2011-11-04 22:27:04 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
bugfix (#autoedit not able to update a field with a +)
Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
Modified: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
2011-11-04 22:24:21 UTC (rev 102059)
+++ trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
2011-11-04 22:27:04 UTC (rev 102060)
@@ -607,8 +607,12 @@
$summary = $parser->recursiveTagParse(
$value );
break;
default :
+ // The decode-encode sequence allows
users to pass wikitext
+ // to the target form without having it
parsed right away.
+ // To do that they need to use
htmlentities instead of
+ // braces and brackets
$formcontent .=
- Xml::input( $key, false,
urldecode( $value ) , array( 'type' => 'hidden') );
+ Xml::input( $key, false,
htmlentities( html_entity_decode( $value ) ) , array( 'type' => 'hidden') );
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs