Commit c3e013e3 authored by Robert Ricci's avatar Robert Ricci

Added '+' to the list of allowed characters.

Also made the 'forbidden character' message somewhat more helpful.
parent 88aa5886
......@@ -92,8 +92,9 @@ do {{
next unless $command; # Don't complain if they leave a blank command
# Don't allow any naughty characters - kick the user off if they try
foreach $string ($command, @args) {
if ($string !~ m|^([A-Za-z0-9._\-/=]*)$|) {
print "Sorry, you used a forbidden character\n";
if ($string !~ m|^([A-Za-z0-9._\-/=\+]*)$|) {
print "Sorry, you used a forbidden character in your command line\n";
print "Please contact testbed-ops\@emulab.net if you believe this message is in error\n";
&debug("String was $string\n");
exit(-1);
} else {
......
......@@ -92,8 +92,9 @@ do {{
next unless $command; # Don't complain if they leave a blank command
# Don't allow any naughty characters - kick the user off if they try
foreach $string ($command, @args) {
if ($string !~ m|^([A-Za-z0-9._\-/=]*)$|) {
print "Sorry, you used a forbidden character\n";
if ($string !~ m|^([A-Za-z0-9._\-/=\+]*)$|) {
print "Sorry, you used a forbidden character in your command line\n";
print "Please contact testbed-ops\@emulab.net if you believe this message is in error\n";
&debug("String was $string\n");
exit(-1);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment