From eee03843bcb86c728ecd5c476aa934b1f400d3e5 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sun, 2 Mar 2008 06:14:08 +0000 Subject: [PATCH] Update Comparison with htmLawed. git-svn-id: http://htmlpurifier.org/svnroot@1590 48356398-32a2-884e-a903-53898d9a118a --- XHTMLCompiler/Page.php | 1 + 1 file changed, 1 insertion(+) diff --git a/XHTMLCompiler/Page.php b/XHTMLCompiler/Page.php index 52b8783..a88363e 100644 --- a/XHTMLCompiler/Page.php +++ b/XHTMLCompiler/Page.php @@ -66,6 +66,7 @@ class XHTMLCompiler_Page 'Requested directory cannot be found; check your file path and try again.' ); } + if ($dir[strlen($dir)-1] == '/') $dir = substr($dir, 0, -1); $allowed_dirs = $xc->getConf('allowed_dirs'); $ok = false; -- 2.11.4.GIT