prettyurls are not working if (for instance) the root dir is symlinked and defaults.php is left unchanged! so we should probably get the path from fp_config and as a plus maybe compare to the auto generated one.

This commit is contained in:
real_nowhereman 2008-02-11 08:17:17 +00:00
parent e68b39ff39
commit ae4ed473f7

View File

@ -242,7 +242,8 @@ class Plugin_PrettyURLs {
return;
# this is not working if you reach flatpress via symlink
# unless you don't edit manually defaults.php
if (strpos($_SERVER['REQUEST_URI'], BLOG_ROOT)!==false) {
$url = $_SERVER['REQUEST_URI'];
$del = BLOG_ROOT;