r92031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92030‎ | r92031 | r92032 >
Date:00:14, 13 July 2011
Author:nad
Status:deferred
Tags:
Comment:
allow other regex delimiters in fields
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -282,7 +282,7 @@
283283 */
284284 function cmpCallback( $a, $b, $operator ) {
285285 $b = html_entity_decode( $b, ENT_QUOTES );
286 - $re = preg_match( "|^/|", $b );
 286+ $re = preg_match( "|^[/#%]|", $b );
287287 switch ( $operator ) {
288288 case '=':
289289 $cond = $re ? preg_match( $b, $a ) : ( empty( $b ) ? ( $a == $b ) : true );

Status & tagging log