Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -281,14 +281,17 @@ |
282 | 282 | * - $b is the expression from the recordtable query |
283 | 283 | */ |
284 | 284 | function cmpCallback( $a, $b, $operator ) { |
285 | | - $b = str_replace( '/', '\/', html_entity_decode( $b, ENT_QUOTES ) ); |
| 285 | + $b = html_entity_decode( $b, ENT_QUOTES ); |
| 286 | + $bre = str_replace( '/', '\/', $b ); |
| 287 | + $bre = str_replace( '(', '\(', $bre ); |
| 288 | + $bre = str_replace( ')', '\)', $bre ); |
286 | 289 | switch ( $operator ) { |
287 | 290 | case '=': |
288 | | - $cond = preg_match( "/$b/i", $a ); |
| 291 | + $cond = preg_match( "/$bre/i", $a ); |
289 | 292 | break; |
290 | 293 | |
291 | 294 | case '!=': |
292 | | - $cond = !preg_match( "/$b/i", $a ); |
| 295 | + $cond = !preg_match( "/$bre/i", $a ); |
293 | 296 | break; |
294 | 297 | |
295 | 298 | default: |
Index: trunk/extensions/RecordAdmin/RecordAdmin.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | * @author Siebrand Mazeland |
12 | 12 | * @licence GNU General Public Licence 2.0 or later |
13 | 13 | */ |
14 | | -define( 'RECORDADMIN_VERSION', '1.2.6, 2011-07-12' ); |
| 14 | +define( 'RECORDADMIN_VERSION', '1.2.7, 2011-07-12' ); |
15 | 15 | |
16 | 16 | $dir = dirname( __FILE__ ) . '/'; |
17 | 17 | $wgExtensionMessagesFiles['RecordAdmin'] = $dir . 'RecordAdmin.i18n.php'; |