From: jakubvrana Date: Wed, 15 Aug 2007 12:34:01 +0000 (+0000) Subject: No default for text/blob X-Git-Tag: v3.0.0~1174 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=a2a318b1c8f565db408e689347bb87ed80221e4c;p=adminer.git No default for text/blob git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@339 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/design.inc.php b/design.inc.php index 6d66b596..f12498c2 100644 --- a/design.inc.php +++ b/design.inc.php @@ -9,7 +9,7 @@ function page_header($title, $breadcrumb = array(), $title2 = "") { -<?php echo $title . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . " - " . lang('phpMinAdmin') . " 1.4.0"; ?> +<?php echo $title . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . " - " . lang('phpMinAdmin') . " 1.4.1-dev"; ?> diff --git a/edit.inc.php b/edit.inc.php index 8714a355..b184299a 100644 --- a/edit.inc.php +++ b/edit.inc.php @@ -2,7 +2,7 @@ $where = where(); $fields = fields($_GET["edit"]); foreach ($fields as $name => $field) { - if (isset($_GET["default"]) ? $field["auto_increment"] : !isset($field["privileges"][$where ? "update" : "insert"])) { + if (isset($_GET["default"]) ? $field["auto_increment"] || preg_match('~text|blob~', $field["type"]) : !isset($field["privileges"][$where ? "update" : "insert"])) { unset($fields[$name]); } }