mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Fix handling of 64 bit numbers in auto_increment
This commit is contained in:
@@ -33,6 +33,14 @@ function escape_string($val) {
|
||||
return substr(q($val), 1, -1);
|
||||
}
|
||||
|
||||
/** Remove non-digits from a string
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function number($val) {
|
||||
return preg_replace('~[^0-9]+~', '', $val);
|
||||
}
|
||||
|
||||
/** Disable magic_quotes_gpc
|
||||
* @param array e.g. (&$_GET, &$_POST, &$_COOKIE)
|
||||
* @param bool whether to leave values as is
|
||||
|
Reference in New Issue
Block a user