mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
22 lines
699 B
Plaintext
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;
|
|
}
|