From: Michael M Slusarz Date: Wed, 19 Aug 2009 19:06:20 +0000 (-0600) Subject: In JS eval() context, function definition is not allowed. Need actual statements... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f4e1d0657282c875bd542876fd5641c46215b845;p=horde.git In JS eval() context, function definition is not allowed. Need actual statements to evaluate --- 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,