From b9ff9b465dda2f7540cd4aef809cfe62c677a243 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 4 Nov 2015 13:14:43 +0800 Subject: [PATCH] * fix bug #758. --- module/mail/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/mail/control.php b/module/mail/control.php index dd246f25fb..2a797c9676 100755 --- a/module/mail/control.php +++ b/module/mail/control.php @@ -143,7 +143,7 @@ class mail extends control if(empty($mailConfig->fromName)) { echo js::alert(sprintf($this->lang->error->notempty, $this->lang->mail->fromName)); - die(js::locate('back')); + die(js::locate($this->server->http_referer)); } /* The mail need openssl and curl extension when secure is tls. */ @@ -152,12 +152,12 @@ class mail extends control if(!extension_loaded('openssl')) { echo js::alert($this->lang->mail->noOpenssl); - die(js::locate('back')); + die(js::locate($this->server->http_referer)); } if(!extension_loaded('curl')) { echo js::alert($this->lang->mail->noCurl); - die(js::locate('back')); + die(js::locate($this->server->http_referer)); } }