From 49ff15491a5c9151c155ff0e2387e3a5895278b6 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Thu, 1 Jul 2010 10:21:17 +0200 Subject: [PATCH] solved bug found by Marco --- bibtexbrowser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 596cdd5..1564d14 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -2349,7 +2349,8 @@ class Dispatcher { // is the publication list included in another page? // strtr is used for Windows where __FILE__ contains C:\toto and SCRIPT_FILENAME contains C:/toto :-( - if (strtr(__FILE__,"\\","/")!=$_SERVER['SCRIPT_FILENAME']) $this->wrapper='NoWrapper'; + // 2010-07-01: bug found by Marco: on some installation these two variables contain backslashes + if (strtr(__FILE__,"\\","/")!=strtr($_SERVER['SCRIPT_FILENAME'],"\\","/")) $this->wrapper='NoWrapper'; // first pass, we will exit if we encounter key or menu or academic // other wise we just create the $this->query