Index: trunk/extensions/QrCode/QrCode.php |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | // Also strip all non-alphanumeric characters |
114 | 114 | if ( $label ) { |
115 | 115 | $this->_label = $label; |
116 | | - $append = '-'.preg_replace("/\W+/", "", $label); |
| 116 | + $append = '-'.preg_replace("/[^0-9a-zA-Z_]+/", "", $label); |
117 | 117 | } else { |
118 | 118 | $this->_label = $wgTitle->getFullURL(); |
119 | 119 | $append = ''; |