* Added redirect resolution to action=parse
* (bug 16074) rvprop=content combined with a generator with a high limit causes
an error
+* (bug 16105) Image metadata attributes containing spaces result in invalid XML
=== Languages updated in 1.14 ===
} else {
$indstr = '';
}
+ $elemName = str_replace(' ', '_', $elemName);
switch (gettype($elemValue)) {
case 'array' :
foreach ($elemValue as $subElemId => & $subElemValue) {
if (is_string($subElemValue) && $this->mDoubleQuote)
$subElemValue = $this->doubleQuote($subElemValue);
+
+ // Replace spaces with underscores
+ $newSubElemId = str_replace(' ', '_', $subElemId);
+ if($newSubElemId != $subElemId) {
+ $elemValue[$newSubElemId] = $subElemValue;
+ unset($elemValue[$subElemId]);
+ $subElemId = $newSubElemId;
+ }
if (gettype($subElemId) === 'integer') {
$indElements[] = $subElemValue;