projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13b4581
)
Checks alias and domain before editing an alias.
author
Stéphane Jacob
<sj@m4x.org>
Fri, 1 Apr 2011 16:36:59 +0000
(18:36 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Fri, 1 Apr 2011 16:36:59 +0000
(18:36 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnetlists.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/xnetlists.php
b/modules/xnetlists.php
index
3f0e792
..
83349b3
100644
(file)
--- a/
modules/xnetlists.php
+++ b/
modules/xnetlists.php
@@
-215,6
+215,11
@@
class XnetListsModule extends ListsModule
require_once 'emails.inc.php';
list($local_part, $domain) = explode('@', $lfull);
+ if ($globals->asso('mail_domain') != $domain || !preg_match("/^[a-zA-Z0-9\-\.]*$/", $local_part)) {
+ $page->trigErrorRedirect('Le nom de l\'alias est erroné.', $globals->asso('diminutif') . '/lists');
+ }
+
+
if (Env::has('add_member')) {
S::assert_xsrf_token();