From 2554c30da749731a879c3dbcd1841837dea8a935 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 4 Feb 2015 09:40:52 +0000 Subject: [PATCH] Fix security error about autocomplete form happens only in FF --- etemplate/inc/class.etemplate_new.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate_new.inc.php b/etemplate/inc/class.etemplate_new.inc.php index 88bcee2ee9..ad7bbd14b7 100644 --- a/etemplate/inc/class.etemplate_new.inc.php +++ b/etemplate/inc/class.etemplate_new.inc.php @@ -189,11 +189,15 @@ class etemplate_new extends etemplate_widget_template { egw_framework::validate_file('.','app',$app,false); } + // set action attribute for autocomplete form tag + // as firefox complains on about:balnk action, thus we have to literaly submit the form to a blank html + $form_action = "about:blank"; + if (html::$user_agent == 'firefox') $form_action = $GLOBALS['egw_info']['server']['webserver_url'].'/etemplate/empty.html'; // check if we are in an ajax-exec call from jdots template (or future other tabbed templates) if (isset($GLOBALS['egw']->framework->response)) { - $content = '