diff --git a/mkht.php b/mkht.php index 12ede3e..518ac66 100755 --- a/mkht.php +++ b/mkht.php @@ -5,7 +5,7 @@ if (php_sapi_name() !== 'cli') umask(0022); const LF = "\n"; -define('ROOT', dirname($_SERVER['SCRIPT_FILENAME'])); +define('ROOT', dirname(realpath($_SERVER['SCRIPT_FILENAME']))); if (!extension_loaded('tidy')) echo 'PHP tidy extension unavailable. Feature disabled.' . PHP_EOL;