| @@ 280-285 (lines=6) @@ | ||
| 277 | $arg = ''; |
|
| 278 | ||
| 279 | // nächstes Zeichen das keine Zahl ist herausfinden |
|
| 280 | while (mb_ereg_match('^[0-9]{1}', $nextchar) == 1) { |
|
| 281 | $arg .= $nextchar; |
|
| 282 | ||
| 283 | $arglength++; |
|
| 284 | $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1); |
|
| 285 | } |
|
| 286 | ||
| 287 | // ok ... ersetzen |
|
| 288 | $filtered_sql .= mb_substr($sql, $sqlpos, $nextarg - $sqlpos); |
|
| @@ 327-332 (lines=6) @@ | ||
| 324 | $arg = ''; |
|
| 325 | ||
| 326 | // nächstes Zeichen das kein Buchstabe/Zahl ist herausfinden |
|
| 327 | while (mb_ereg_match('^[a-zA-Z0-9]{1}', $nextchar) == 1) { |
|
| 328 | $arg .= $nextchar; |
|
| 329 | ||
| 330 | $arglength++; |
|
| 331 | $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1); |
|
| 332 | } |
|
| 333 | ||
| 334 | // ok ... ersetzen |
|
| 335 | $filtered_sql .= mb_substr($sql, $sqlpos, $nextarg - $sqlpos); |
|
| @@ 189-194 (lines=6) @@ | ||
| 186 | $arg = ''; |
|
| 187 | ||
| 188 | // find next non-digit |
|
| 189 | while (preg_match('/^[0-9]{1}/', $nextchar) === 1) { |
|
| 190 | $arg .= $nextchar; |
|
| 191 | ||
| 192 | $arglength++; |
|
| 193 | $nextchar = substr($sql, $nextarg + $arglength + 1, 1); |
|
| 194 | } |
|
| 195 | ||
| 196 | // ok ... replace |
|
| 197 | $filtered_sql .= substr($sql, $sqlpos, $nextarg - $sqlpos); |
|
| @@ 239-244 (lines=6) @@ | ||
| 236 | ||
| 237 | // find next non-alphanumeric char |
|
| 238 | // (added '_' - it is used in temptable names - following 2013/07/18) |
|
| 239 | while (preg_match('/^[a-zA-Z0-9_]{1}/', $nextchar) == 1) { |
|
| 240 | $arg .= $nextchar; |
|
| 241 | ||
| 242 | $arglength++; |
|
| 243 | $nextchar = substr($sql, $nextarg + $arglength + 1, 1); |
|
| 244 | } |
|
| 245 | ||
| 246 | // ok ... replace |
|
| 247 | $filtered_sql .= substr($sql, $sqlpos, $nextarg - $sqlpos); |
|