projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4002af5
)
check group name length+better warning msg
author
Alain Peyrat
<aljeux@free.fr>
Tue, 24 Feb 2009 10:22:51 +0000
(10:22 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Tue, 24 Feb 2009 10:22:51 +0000
(10:22 +0000)
gforge/common/include/Group.class.php
patch
|
blob
|
history
diff --git
a/gforge/common/include/Group.class.php
b/gforge/common/include/Group.class.php
index ca5cbd60eb9801f1980bea4b59ca0d32dcb80c4f..a59b7c7c2bafaaffc6e8c147df2ca2d76794d813 100644
(file)
--- a/
gforge/common/include/Group.class.php
+++ b/
gforge/common/include/Group.class.php
@@
-277,7
+277,10
@@
class Group extends Error {
$this->setError(_('Group::create: Group object already exists'));
return false;
} else if (strlen($full_name)<3) {
- $this->setError(_('Invalid full name'));
+ $this->setError(_('Full name is too short'));
+ return false;
+ } else if (strlen(htmlspecialchars($full_name))>50) {
+ $this->setError(_('Full name is too long'));
return false;
} else if (!account_groupnamevalid($unix_name)) {
$this->setError(_('Invalid Unix name'));