Revision 2a5b9215
Added by Bill Marquette almost 20 years ago
etc/inc/util.inc | ||
---|---|---|
203 | 203 |
return true; |
204 | 204 |
} |
205 | 205 |
|
206 |
/* returns true if $name is a valid name for an alias */ |
|
207 |
function is_validaliasname($name) { |
|
208 |
/* Array of reserved words */ |
|
209 |
|
|
210 |
if (!preg_match("/[^a-zA-Z0-9]/", $name)) |
|
211 |
return true; |
|
212 |
else |
|
213 |
return false; |
|
214 |
} |
|
215 |
|
|
216 | 206 |
/* returns true if $name is a valid name for an alias */ |
217 | 207 |
function is_validaliasname($name) { |
218 | 208 |
/* Array of reserved words */ |
Also available in: Unified diff
Aargh, test before commit!!! smack
Fixing stupid non-cleaned up copy/paste