From 8183c9deafdc39d673767a1257b8a0a2ff5c792d Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 29 Jul 2012 18:27:37 +0530 Subject: [PATCH] Disallow grid editing binary content when cfg['ProtectBinary'] == 'noblob' --- libraries/DisplayResults.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php index 0045bfb7a9..1966ff6064 100644 --- a/libraries/DisplayResults.class.php +++ b/libraries/DisplayResults.class.php @@ -3652,7 +3652,8 @@ class PMA_DisplayResults $is_analyse = $this->__get('_is_analyse'); $field_flags = PMA_DBI_field_flags($dt_result, $col_index); if (stristr($field_flags, self::BINARY_FIELD) - && $GLOBALS['cfg']['ProtectBinary'] === 'all' + && ($GLOBALS['cfg']['ProtectBinary'] == 'all' + || $GLOBALS['cfg']['ProtectBinary'] == 'noblob') ) { $class = str_replace('grid_edit', '', $class); }