]> git.joonet.de Git - adminer.git/commitdiff
Increase limit for using MD5 in select
authorJakub Vrana <jakub@vrana.cz>
Fri, 12 Apr 2013 01:08:35 +0000 (18:08 -0700)
committerJakub Vrana <jakub@vrana.cz>
Fri, 12 Apr 2013 16:08:44 +0000 (09:08 -0700)
adminer/select.inc.php

index 9a56c4ac1c0bf54ca1d3cf98b6d5fc7acde78b91..5a0809eba1e15f4c01d310c19bba5d3641c6065d 100644 (file)
@@ -335,7 +335,7 @@ if (!$columns) {
                                $unique_array = unique_array($rows[$n], $indexes);
                                $unique_idf = "";
                                foreach ($unique_array as $key => $val) {
-                                       if (strlen($val) > 10) {
+                                       if (strlen($val) > 64) {
                                                $key = "MD5(" . (strpos($key, '(') ? $key : idf_escape($key)) . ")"; //! columns looking like functions
                                                $val = md5($val);
                                        }