mirror of
https://github.com/vrana/adminer.git
synced 2025-08-21 13:51:33 +02:00
Use MD5 for editing long keys only in supported drivers
This commit is contained in:
@@ -346,7 +346,7 @@ if (!$columns && support("table")) {
|
||||
}
|
||||
$unique_idf = "";
|
||||
foreach ($unique_array as $key => $val) {
|
||||
if (strlen($val) > 64) {
|
||||
if (strlen($val) > 64 && ($jush == "sql" || $jush == "pgsql")) {
|
||||
$key = "MD5(" . (strpos($key, '(') ? $key : idf_escape($key)) . ")"; //! columns looking like functions
|
||||
$val = md5($val);
|
||||
}
|
||||
|
Reference in New Issue
Block a user