You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like vnstat-php is trying to auto-detect the script's location and force all links to be under this root. This doesn't work if the location cannot be auto-detected (e.g. script is behind a reverse proxy).
I'm not actually sure if there's much point in the $script variable, as there's non-dynamic references to graph_svg.php, for example (so some dynamic path detection isn't being used anyway). I suppose if you want to allow the user to rename index.php to something else, it may come in handy, in which case, using basename on the $script variable would be just as effective.
Thanks for the script!
The text was updated successfully, but these errors were encountered:
It looks like vnstat-php is trying to auto-detect the script's location and force all links to be under this root. This doesn't work if the location cannot be auto-detected (e.g. script is behind a reverse proxy).
I'm not actually sure if there's much point in the
$script
variable, as there's non-dynamic references to graph_svg.php, for example (so some dynamic path detection isn't being used anyway). I suppose if you want to allow the user to rename index.php to something else, it may come in handy, in which case, usingbasename
on the$script
variable would be just as effective.Thanks for the script!
The text was updated successfully, but these errors were encountered: