Aleksander Machniak
2012-09-03 60860ca2ef93b5bca1adfd7f0b95cfd51fc883d5
program/include/rcube_json_output.php
@@ -212,7 +212,7 @@
    public function redirect($p = array(), $delay = 1)
    {
        $location = rcmail::get_instance()->url($p);
        $this->remote_response("window.setTimeout(\"location.href='{$location}'\", $delay);");
        $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay));
        exit;
    }