summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87d5b77)
raw | patch | inline | side by side (parent: 87d5b77)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 13 Jul 2010 09:55:56 +0000 (09:55 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 13 Jul 2010 09:55:56 +0000 (09:55 +0000) |
-Fixed post handling
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18994 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18994 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc b/gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc
index 610db115ae85f6d4ba3162259f7944206ca16763..03eb14d55ab615e06dd344eae31ee3af5a8869f9 100644 (file)
/* Load templating engine */
$smarty= get_smarty();
- $smarty->assign("scalixGroup",$this->scalixGroup);
+ $smarty->assign("scalixGroup", set_post($this->scalixGroup));
$display= "";
/* Do we need to flip is_account state? */
"scalixServerLanguage", "scalixLimitMailboxSize", "scalixLimitOutboundMail", "scalixEmailAddress",
"scalixLimitInboundMail", "scalixLimitNotifyUser", "scalixHideUserEntry", "scalixMailboxClass") as $val){
- $smarty->assign("$val", $this->$val);
+ $smarty->assign("$val", set_post($this->$val));
}
$tmp = $this->plInfo();
plugin::save_object();
/* Check if given value is not empty */
- if (isset($_POST['email_address']) && !empty($_POST['email_address'])){
+ if (isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['add_email'])){
$valid= FALSE;
/* Valid mail address */
if( ($this->is_template && !tests::is_email($_POST['email_address'], TRUE)) ||
- (!$this->is_template && !tests::is_email($_POST['email_address'])) ){
+ (!$this->is_template && !tests::is_email($_POST['email_address']))){
msg_dialog::display(_("Error"), _("Cannot add invalid mail address!"), ERROR_DIALOG);
}else{
$valid = TRUE;
}else{
/* Mail address already in use ? */
- if ($valid && ($user= $this->addEmail ($_POST['email_address'])) != ""){
+ if ($valid && ($user= $this->addEmail (get_post('email_address'))) != ""){
$ui= get_userinfo();
if ($user != $ui->username){
msg_dialog::display(_("Error"), sprintf(_("Cannot add mail address: it is already used by user '%s'."), $user),
}
/* Mail address already in use ? */
- if ($valid && ($user= $this->addEmail ($_POST['email_address'])) != ""){
+ if ($valid && ($user= $this->addEmail (get_post('email_address'))) != ""){
$ui= get_userinfo();
if ($user != $ui->username){
msg_dialog::display(_("Error"), sprintf(_("Cannot add mail address: it is already used by user '%s'."), $user), ERROR_DIALOG);
function getCopyDialog()
{
$smarty = get_smarty();
- $smarty->assign("scalixEmailAddress",$this->scalixEmailAddress);
+ $smarty->assign("scalixEmailAddress",set_post($this->scalixEmailAddress));
$str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__)));
$ret = array();
$ret['string'] = $str;