From f4e1d0657282c875bd542876fd5641c46215b845 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 19 Aug 2009 13:06:20 -0600 Subject: [PATCH] In JS eval() context, function definition is not allowed. Need actual statements to evaluate --- imp/lib/IMP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index 4f4d84f30..1b65c94b4 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -1222,7 +1222,7 @@ class IMP } $js_params = array( - 'action' => $action ? 'function() {' . $action . '}' : '', + 'action' => $action, 'uri' => Horde::applicationUrl('ajax.php', true, -1) . '/' . $type, 'params' => $params, 'text' => $text, -- 2.11.0