Commit 14adca87 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to parsing so that link names with "-" in them are accepted.

Switched to perl style regex while I was at it.
parent b1a0dddb
......@@ -109,9 +109,9 @@ if ($dochange == "1") {
#
# Must taint check! This stuff is going to a shell program.
#
if (!ereg("^[0-9a-zA-Z\-\_]*$", $param) ||
!ereg("^[0-9a-zA-Z\-\_]*$", $lan) ||
!ereg("^[0-9a-zA-Z\-\_]*$", $vnode)) {
if (!preg_match("/^[-\w]*$/", $param) ||
!preg_match("/^[-\w]*$/", $lan) ||
!preg_match("/^[-\w]*$/", $vnode)) {
continue;
}
......@@ -150,6 +150,7 @@ if ($dochange == "1") {
}
$cmd = "webdelay_config $modbasearg $vnode $pid $eid $lan $string";
#echo "$cmd<br>\n";
#
# Need proper auditing or logging. For now, run as normal and
......
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