Commit 37503283 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor regex fix.

parent b8bd80de
......@@ -42,7 +42,7 @@ if (!isset($_SERVER["SSL_PROTOCOL"])) {
if (!preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $IP) ||
!preg_match('/^[\w]+$/', $privkey) ||
(isset($hostname) &&
!preg_match('/^[-\w]+$/', $hostname))) {
!preg_match('/^[-\w\.]+$/', $hostname))) {
SPITSTATUS(WASTATUS_INVALIDARGS);
return;
}
......
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