bug 821350

This commit is contained in:
Marc Delisle
2003-10-11 13:21:47 +00:00
parent e3839c0844
commit fc8f9dd9cb
2 changed files with 6 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2003-10-11 Marc Delisle <lem9@users.sourceforge.net>
* libraries/grab_globals.lib.php3: bug 807047, better fix
* tbl_select.php3: bug 821350: escape single quotes in table
Search page
2003-10-10 Marc Delisle <lem9@users.sourceforge.net>
* footer.inc.php3: bug 819036, undefined function PMA_setHistory()

View File

@@ -277,7 +277,10 @@ else {
$quot = '';
$func[$i] = 'IS';
}
$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . " $func[$i] $quot$fields[$i]$quot";
//$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . " $func[$i] $quot$fields[$i]$quot";
$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . ' ' . $func[$i] . ' ' . $quot . PMA_sqlAddslashes($fields[$i]) . $quot;
} // end if
} // end for
} // end if