replaced space characters by the [[:space:]] POSIX expression
This commit is contained in:
3
sql.php3
3
sql.php3
@@ -73,7 +73,7 @@ if (isset($btnDrop) || isset($navig)) {
|
||||
// query may contain aliases.
|
||||
// (todo: check for embedded comments...)
|
||||
|
||||
eregi('SELECT (.*)FROM +(`[^`]+`|[A-Za-z0-9_$]+)([\.]*)(`[^`]*`|[A-Za-z0-9_$]*)', $sql_query, $tmp);
|
||||
eregi('SELECT[[:space:]](.*)[[:space:]]FROM[[:space:]]+(`[^`]+`|[A-Za-z0-9_$]+)([\.]*)(`[^`]*`|[A-Za-z0-9_$]*)', $sql_query, $tmp);
|
||||
|
||||
if ($tmp[3] == '.') {
|
||||
$prev_db = $db;
|
||||
@@ -85,6 +85,7 @@ else {
|
||||
$table = str_replace('`', '', $tmp[2]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets or modifies the $goto variable if required
|
||||
*/
|
||||
|
Reference in New Issue
Block a user