From a2a318b1c8f565db408e689347bb87ed80221e4c Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 15 Aug 2007 12:34:01 +0000 Subject: [PATCH] No default for text/blob git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@339 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- design.inc.php | 2 +- edit.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]); } }