Use realpath for ROOT to allow symlinks to mkht.php
This commit is contained in:
parent
a13aadc3c7
commit
66df795d25
1 changed files with 1 additions and 1 deletions
2
mkht.php
2
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;
|
||||
|
|
Loading…
Reference in a new issue