Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
89d1f48d
Commit
89d1f48d
authored
Dec 07, 2000
by
Kristin Wright
Browse files
make username upper or lower
parent
94484931
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/mkacct-ctrl
View file @
89d1f48d
#!/usr/local/bin/perl -wT
### $Id: mkacct-ctrl,v 1.
7
2000-12-07
08:42
:0
8
kwright Exp $
### $Id: mkacct-ctrl,v 1.
8
2000-12-07
21:30
:0
0
kwright Exp $
use
English
;
use
Mysql
;
...
...
@@ -228,7 +228,7 @@ sub sanitize() {
}
## sanitize user
if
(
$ARGV
[
1
]
=~
/^([a-z0-9]+)$/
)
{
if
(
$ARGV
[
1
]
=~
/^([a-z0-9]+)$/
i
)
{
$user
=
$
1
;
}
else
{
die
"
$0: User argument
$ARGV
[1] has invalid characters.
\n
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment