]> git.joonet.de Git - adminer.git/commitdiff
Save bytes
authorJakub Vrana <jakub@vrana.cz>
Tue, 10 May 2011 12:54:10 +0000 (14:54 +0200)
committerJakub Vrana <jakub@vrana.cz>
Tue, 10 May 2011 12:54:10 +0000 (14:54 +0200)
editor/include/adminer.inc.php

index 903449b488db1108bdddbf8b00659a91110e34e8..4b8686f9bd85a21d405ca0d399b0372d254fce34 100644 (file)
@@ -159,7 +159,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                $return = ($val == "<i>NULL</i>" ? "&nbsp;" : $val);
                if (ereg('blob|bytea', $field["type"]) && !is_utf8($val)) {
                        $return = lang('%d byte(s)', strlen($val));
-                       if (ereg("^(GIF|\xFF\xD8\xFF|\x89\x50\x4E\x47\x0D\x0A\x1A\x0A)", $val)) { // GIF|JPG|PNG, getimagetype() works with filename
+                       if (ereg("^(GIF|\xFF\xD8\xFF|\x89PNG\x0D\x0A\x1A\x0A)", $val)) { // GIF|JPG|PNG, getimagetype() works with filename
                                $return = "<img src='$link' alt='$return'>";
                        }
                }