Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -144,15 +144,16 @@ |
145 | 145 | break; |
146 | 146 | } |
147 | 147 | // Just get the whole log if there are a lot if items |
148 | | - if( $ids > 20 ) return null; |
| 148 | + if( count($ids) > 20 ) return null; |
149 | 149 | // Digit chars only |
150 | 150 | foreach( $ids as $id ) { |
151 | 151 | if( preg_match( '/^\d+$/', $id, $m ) ) { |
152 | 152 | $safeIds[] = $m[0]; |
153 | 153 | } |
154 | 154 | } |
| 155 | + // Format is <id1,id2,i3...> |
155 | 156 | if( count($safeIds) ) { |
156 | | - return array("log_params RLIKE '".implode('|',$safeIds)."'"); |
| 157 | + return array("log_params RLIKE '(^|\n|,)(".implode('|',$safeIds).")(,|$)'"); |
157 | 158 | } |
158 | 159 | return null; |
159 | 160 | } |