r112342 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112341‎ | r112342 | r112343 >
Date:19:13, 24 February 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
decode urlencoded apostrophes
Modified paths:
  • /trunk/extensions/EducationProgram/maintenance/importWEPData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/maintenance/importWEPData.php
@@ -41,6 +41,12 @@
4242 $courses = array(); // course => org name
4343 $students = array(); // student => [ courses ]
4444
 45+ $text = str_replace(
 46+ array( '_', '%27' ),
 47+ array( ' ', "'" ),
 48+ $text
 49+ );
 50+
4551 foreach ( explode( "\n", $text ) as $line ) {
4652 $cells = explode( ',', $line );
4753

Status & tagging log