diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index ecca3d87..f2466c08 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -151,7 +151,7 @@ document.getElementById('username').focus();
*/
function selectVal($val, $link, $field) {
$return = ($val != "NULL" && $field["type"] == "char" ? "$val" : $val);
- if (ereg('binary|blob|bytea', $field["type"]) && !is_utf8($val)) {
+ if (ereg('binary|blob|bytea|raw|file', $field["type"]) && !is_utf8($val)) {
$return = lang('%d byte(s)', strlen($val));
}
return ($link ? "$return" : $return);
diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php
index ab06932b..743ecfd0 100644
--- a/adminer/include/functions.inc.php
+++ b/adminer/include/functions.inc.php
@@ -562,9 +562,9 @@ function input($field, $value, $function) {
$checked = (is_int($value) ? ($value >> $i) & 1 : in_array($val, explode(",", $value), true));
echo " ';
}
- } elseif (ereg('binary|blob|bytea', $field["type"]) && ini_bool("file_uploads")) {
+ } elseif (ereg('binary|blob|bytea|raw|file', $field["type"]) && ini_bool("file_uploads")) {
echo "";
- } elseif (ereg('text|blob', $field["type"])) {
+ } elseif (ereg('text|lob', $field["type"])) {
echo "'; // 1.2em - line-height
} else {
// int(3) is only a display hint
@@ -604,7 +604,7 @@ function process_input($field) {
if ($field["type"] == "set") {
return array_sum((array) $value);
}
- if (ereg('binary|blob|bytea', $field["type"]) && ini_bool("file_uploads")) {
+ if (ereg('binary|blob|bytea|raw|file', $field["type"]) && ini_bool("file_uploads")) {
$file = get_file("fields-$idf");
if (!is_string($file)) {
return false; //! report errors
diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index 2380fa26..df2eed78 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -12,7 +12,7 @@ foreach ($fields as $key => $field) {
$name = $adminer->fieldName($field);
if (isset($field["privileges"]["select"]) && $name != "") {
$columns[$key] = html_entity_decode(strip_tags($name));
- if (ereg('text|clob|blob', $field["type"])) {
+ if (ereg('text|lob', $field["type"])) {
$text_length = $adminer->selectLengthProcess();
}
}
@@ -280,7 +280,7 @@ if (!$columns) {
if (!isset($val)) {
$val = "NULL";
} else {
- if (ereg('binary|blob|bytea', $field["type"]) && $val != "") {
+ if (ereg('binary|blob|bytea|raw|file', $field["type"]) && $val != "") {
$link = h(ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . $unique_idf);
}
if ($val == "") {
@@ -331,7 +331,7 @@ if (!$columns) {
$h_value = h(isset($value) ? $value : $row[$key]);
$long = strpos($val, "...");
$editable = is_utf8($val) && !$long && $rows[$n][$key] == $row[$key] && !$functions[$key];
- $text = ereg('text|blob', $field["type"]);
+ $text = ereg('text|lob', $field["type"]);
echo (($_GET["modify"] && $editable) || isset($value)
? "