r82252 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82251‎ | r82252 | r82253 >
Date:15:07, 16 February 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Be more lax about the input... still trying to find the cause
Modified paths:
  • /trunk/extensions/Translate/ffs/Gettext.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/Gettext.php
@@ -286,8 +286,8 @@
287287 if ( strpos( $line, ':' ) === false ) {
288288 error_log( __METHOD__ . ": $line" );
289289 }
290 - list( $key, $value ) = explode( ': ', $line, 2 );
291 - $tags[$key] = $value;
 290+ list( $key, $value ) = explode( ':', $line, 2 );
 291+ $tags[trim($key)] = trim($value);
292292 }
293293
294294 return $tags;

Status & tagging log