Commit b202616e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix up some regex's to match the web forms.

parent 910dc835
......@@ -91,7 +91,7 @@ else {
die("*** Bad data in $node\n");
}
if ($imagename =~ /^([-\w\.\+]+)$/) {
if ($imagename =~ /^([-\w\.]+)$/) {
$imagename = $1;
}
else {
......@@ -101,7 +101,7 @@ else {
if (defined($options{"p"})) {
$imagepid = $options{"p"};
if ($imagepid =~ /^([-\w\.\+]+)$/) {
if ($imagepid =~ /^([-\w\.]+)$/) {
$imagepid = $1;
}
else {
......@@ -175,7 +175,7 @@ if ($mereuser &&
my $filename = $imageid_row{'path'};
# Untaint. Very silly.
if ($filename =~ /^([-\w\.\/]+)$/) {
if ($filename =~ /^([-\w\.\/\+]+)$/) {
$filename = $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