From fe5adf6ba2ed31dccba7b25f7caf577e67c4ee0c Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 27 Oct 2009 09:08:48 +0000 Subject: [PATCH] * Prevent password autocompletion for user passwords to prevent possible mismatch. In media manager popup, fix bug that did not properly forward to image selection after upload (onli) --- docs/NEWS | 4 ++++ include/admin/images.inc.php | 10 +++++++++- include/tpl/config_local.inc.php | 2 +- include/tpl/config_personal.inc.php | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index d6e032a8..28bcbc49 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.5 () ------------------------------------------------------------------------ + * Prevent password autocompletion for user passwords to prevent + possible mismatch. In media manager popup, fix bug that did + not properly forward to image selection after upload (onli) + * Fix a bug in statistics output, when statistics for single-number months is created. (Andreas Bilke) diff --git a/include/admin/images.inc.php b/include/admin/images.inc.php index eee62d64..5b4d1a3b 100644 --- a/include/admin/images.inc.php +++ b/include/admin/images.inc.php @@ -825,7 +825,7 @@ switch ($serendipity['GET']['adminAction']) { function showMediaLibrary($messages=false) { if (!serendipity_checkPermission('adminImagesView')) { return; - } + } if(!empty($messages)) { echo '
'; } + global $image_selector_addvars; + #if $image_selector_addvars is not empty, this was called by + #serendipity_admin_image_selector.php and the library shall not be displayed (yet). + if (!empty($image_selector_addvars)) { + return; + } + + ?>