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:
2fd5b8b
)
switch from eregi to preg_match
author
Alain Peyrat
<aljeux@free.fr>
Tue, 24 Feb 2009 10:22:45 +0000
(10:22 +0000)
committer
Alain Peyrat
<aljeux@free.fr>
Tue, 24 Feb 2009 10:22:45 +0000
(10:22 +0000)
gforge/common/forum/Forum.class.php
patch
|
blob
|
history
diff --git
a/gforge/common/forum/Forum.class.php
b/gforge/common/forum/Forum.class.php
index 72143d10d0d07ca70363db7cb73927a17073e954..2afe871fc70ff678f4157314e65dadef91ffbf5f 100644
(file)
--- a/
gforge/common/forum/Forum.class.php
+++ b/
gforge/common/forum/Forum.class.php
@@
-124,7
+124,7
@@
class Forum extends Error {
$this->setError(_('Forum Description Must Be At Least 10 Characters'));
return false;
}
- if (
eregi
('[^_\.0-9a-z-]',$forum_name)) {
+ if (
preg_match
('[^_\.0-9a-z-]',$forum_name)) {
$this->setError(_('Illegal Characters in Forum Name'));
return false;
}