PHP3 compatible
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-02-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/sqlparser.lib.php3: PHP3 parse error
|
||||||
|
|
||||||
2003-02-05 Alexander M. Turek <rabus@users.sourceforge.net>
|
2003-02-05 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* db_details.php3, tbl_query_box.php3: Disabled the autoselect feature of
|
* db_details.php3, tbl_query_box.php3: Disabled the autoselect feature of
|
||||||
the SQL query box for Opera 7 for Windows in order to avoid trouble here.
|
the SQL query box for Opera 7 for Windows in order to avoid trouble here.
|
||||||
|
@@ -610,7 +610,9 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
|
|||||||
if(strcmp($whatWeWant, $toCheck) == 0) {
|
if(strcmp($whatWeWant, $toCheck) == 0) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
if(strpos($whatWeWant, $typeSeperator) === FALSE) {
|
//if(strpos($whatWeWant, $typeSeperator) === FALSE) {
|
||||||
|
// PHP3 compatible (works unless there is a real ff character)
|
||||||
|
if(!strpos("\xff" . $whatWeWant, $typeSeperator)) {
|
||||||
return strncmp($whatWeWant, $toCheck , strpos($toCheck, $typeSeperator)) == 0;
|
return strncmp($whatWeWant, $toCheck , strpos($toCheck, $typeSeperator)) == 0;
|
||||||
} else {
|
} else {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user