diff --git a/submit-event.php b/submit-event.php index 8aadc2a4e..b6ea42f03 100644 --- a/submit-event.php +++ b/submit-event.php @@ -62,7 +62,7 @@ if ($process) { if (!$_POST['url']) { $errors[] = "You must supply a URL with more information about the event."; } - elseif (!in_array($pu['scheme'], $schemes) || empty(trim($pu['host']))) { + elseif (!in_array($pu['scheme'], $valid_schemes) || empty(trim($pu['host']))) { $errors[] = "The URL you supplied was invalid."; }