https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114821
Revision: 114821
Author: schuellersa
Date: 2012-04-10 14:21:57 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Bugfix -
looks like the same Error as Error on attribute value & #13; and & lt;
String Replaces for the Field Value and remove '<' and '>'.
Modified Paths:
--------------
trunk/extensions/SolrStore/SolrDoc.php
Modified: trunk/extensions/SolrStore/SolrDoc.php
===================================================================
--- trunk/extensions/SolrStore/SolrDoc.php 2012-04-10 14:18:53 UTC (rev
114820)
+++ trunk/extensions/SolrStore/SolrDoc.php 2012-04-10 14:21:57 UTC (rev
114821)
@@ -24,6 +24,7 @@
* @param $value String: value of the field
*/
public function addField( $name, $value ) {
+ $value = preg_replace('/<|>/msu', '',$value);
$this->output .= '<field name="' . $name . '">' . $value .
'</field>';
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs