From a80ae1992c90a92245ec694438be201d7231c8e6 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 06 Mar 2014 06:58:29 -0500
Subject: [PATCH] Moved check_recipient_access to the front. Blacklist for recipients is ignored on outgoing mails via smtp auth otherwise.
---
interface/web/mailuser/mail_user_password_edit.php | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/interface/web/mailuser/mail_user_password_edit.php b/interface/web/mailuser/mail_user_password_edit.php
index 22eea89..f6d6d78 100644
--- a/interface/web/mailuser/mail_user_password_edit.php
+++ b/interface/web/mailuser/mail_user_password_edit.php
@@ -38,8 +38,8 @@
* End Form configuration
******************************************/
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
+require_once '../../lib/config.inc.php';
+require_once '../../lib/app.inc.php';
//* Check permissions for module
$app->auth->check_module_permissions('mailuser');
@@ -49,24 +49,24 @@
$app->load('tform_actions');
class page_action extends tform_actions {
-
+
function onSubmit() {
-
- $this->id = $_SESSION['s']['user']['mailuser_id'];
-
+
+ $this->id = $app->functions->intval($_SESSION['s']['user']['mailuser_id']);
+
parent::onSubmit();
-
+
}
-
+
function onShowEnd() {
global $app, $conf;
-
+
$rec = $app->tform->getDataRecord($_SESSION['s']['user']['mailuser_id']);
$app->tpl->setVar("email", $rec['email']);
-
+
parent::onShowEnd();
}
-
+
}
$app->tform_actions = new page_action;
--
Gitblit v1.9.1