don't display URLs in error message
This commit is contained in:
parent
3ded040939
commit
f5bee74b4d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=36333
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
|||
#
|
||||
# url.cgi - make plain text URLs clickable
|
||||
#
|
||||
# $FreeBSD: www/en/cgi/url.cgi,v 1.35 2007/03/19 17:52:39 wosch Exp $
|
||||
# $FreeBSD: www/en/cgi/url.cgi,v 1.36 2007/03/19 18:13:51 wosch Exp $
|
||||
|
||||
use strict;
|
||||
|
||||
|
@ -48,7 +48,7 @@ my $portcategory;
|
|||
# security checks
|
||||
if ($file !~ m%^(http|ftp)://[a-z_\-0-9]+\.freebsd\.(com|org)%i &&
|
||||
$file !~ m%^ports/%) {
|
||||
&CgiError(("Invalid url: $file", "Only http://*.freebsd.* is allowed.\n"));
|
||||
&CgiError(("Invalid URL", "Only http://*.freebsd.* is allowed.\n"));
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue