From 48b78f5772d9aa7af8d4fb7a0b826b173e9e03e5 Mon Sep 17 00:00:00 2001 From: ahaber Date: Mon, 5 May 2014 12:29:59 +0200 Subject: [PATCH] aligned with clean_xss_fix branch --- bibtexbrowser.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index de82798..fe4764f 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -242,11 +242,11 @@ function _zetDB($bibtex_filenames) { $ext = pathinfo($bib, PATHINFO_EXTENSION); // this is a security protection if (BIBTEXBROWSER_LOCAL_BIB_ONLY && (!file_exists($bib) || strcasecmp($ext, 'bib') != 0)) { - // to automate dectection of faulty links with tools such as webcheck - header('HTTP/1.1 404 Not found'); - // escape $bib to prevent XSS - $escapedBib = htmlEntities($bib, ENT_QUOTES); - die('the bib file '.$escapedBib.' does not exist !'); + // to automate dectection of faulty links with tools such as webcheck + header('HTTP/1.1 404 Not found'); + // escape $bib to prevent XSS + $escapedBib = htmlEntities($bib, ENT_QUOTES); + die('the bib file '.$escapedBib.' does not exist !'); } } // end for each