https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113131
Revision: 113131
Author: yaron
Date: 2012-03-06 13:27:05 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
Added handling for whitespaces around the '=' for parameters of #set_internal
Modified Paths:
--------------
trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
Modified:
trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
===================================================================
--- trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
2012-03-06 13:15:23 UTC (rev 113130)
+++ trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php
2012-03-06 13:27:05 UTC (rev 113131)
@@ -289,11 +289,11 @@
$internalObject->addPropertyAndValue( $objToPagePropName,
self::$mCurPageFullName );
foreach ( $params as $param ) {
- $parts = explode( '=', trim( $param ), 2 );
+ $parts = explode( '=', $param, 2 );
if ( count( $parts ) == 2 ) {
- $key = $parts[0];
- $value = $parts[1];
+ $key = trim( $parts[0] );
+ $value = trim( $parts[1] );
// if the property name ends with '#list', it's
// a comma-delimited group of values
if ( substr( $key, - 5 ) == '#list' ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs