r73597 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73596‎ | r73597 | r73598 >
Date:11:07, 23 September 2010
Author:kwisatz
Status:deferred
Tags:
Comment:
QrCode: Minor edit to the character stripping, also stripping non-ascii chars for compatibility with pre-unicode systems.
Modified paths:
  • /trunk/extensions/QrCode/QrCode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/QrCode/QrCode.php
@@ -112,7 +112,7 @@
113113 // Also strip all non-alphanumeric characters
114114 if ( $label ) {
115115 $this->_label = $label;
116 - $append = '-'.preg_replace("/\W+/", "", $label);
 116+ $append = '-'.preg_replace("/[^0-9a-zA-Z_]+/", "", $label);
117117 } else {
118118 $this->_label = $wgTitle->getFullURL();
119119 $append = '';

Status & tagging log