1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/www/webglimpse/files/patch-ad
1998-11-02 06:54:53 +00:00

22 lines
699 B
Plaintext

--- lib/wgserver.pl.orig Mon Jun 29 20:45:06 1998
+++ lib/wgserver.pl Mon Nov 2 08:26:21 1998
@@ -114,6 +114,7 @@
$override = 0;
$ServerRoot = '';
+ $output = '';
while (<CONF>) {
# Trim leading white space
@@ -163,8 +164,8 @@
close(CONF);
- ($ServerRoot ne '') && ($ResourceConfig = $ServerRoot.'/'.$ResourceConfig);
- ($ServerRoot ne '') && ($AccessConfig = $ServerRoot.'/'.$AccessConfig);
+ ($ServerRoot ne '') && ($ResourceConfig ne '') && ($ResourceConfig !~ '^/') && ($ResourceConfig = $ServerRoot.'/'.$ResourceConfig);
+ ($ServerRoot ne '') && ($AccessConfig ne '') && ($AccessConfig !~ '^/') && ($AccessConfig = $ServerRoot.'/'.$AccessConfig);
return $output;
}