diff --git a/data/tunnel/connector.php b/data/tunnel/connector.php index ba9fded9..7dd12f37 100644 --- a/data/tunnel/connector.php +++ b/data/tunnel/connector.php @@ -64,12 +64,13 @@ function get_tmp_dir() $tmp = str_replace("/", $sep, $rel); $len = strlen($tmp); if($tmp == substr($abs, -$len)) - $R['WEB_ROOT']=substr($abs, 0, -$len); + $R['WEB_ROOT'] = substr($abs, 0, -$len); } } } -$R['WEB_ROOT'] = @realpath($R['WEB_ROOT']); +if (($x = @realpath($R['WEB_ROOT'])) !== False) + $R['WEB_ROOT'] = $x; // Determine WRITEABLE_WEBDIR.