From ae4ed473f7b96023711efdbb5daa559539cffb9c Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Mon, 11 Feb 2008 08:17:17 +0000 Subject: [PATCH] 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. --- fp-plugins/prettyurls/plugin.prettyurls.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-plugins/prettyurls/plugin.prettyurls.php b/fp-plugins/prettyurls/plugin.prettyurls.php index c96e73d..4045d39 100644 --- a/fp-plugins/prettyurls/plugin.prettyurls.php +++ b/fp-plugins/prettyurls/plugin.prettyurls.php @@ -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;