From f001e1b61dca475e300c75a27c573b34841c206f Mon Sep 17 00:00:00 2001 From: adrien Date: Sun, 20 Oct 2024 13:41:51 +0200 Subject: [PATCH] fix url --- filter_inputs.php | 4 ++++ index.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/filter_inputs.php b/filter_inputs.php index ed21b64..3d1fdeb 100644 --- a/filter_inputs.php +++ b/filter_inputs.php @@ -117,3 +117,7 @@ if ($preset && isset($presets[$preset])) { } $options["--datadir"] = $DATADIR; + +/*echo "\n";*/ \ No newline at end of file diff --git a/index.php b/index.php index ec76d6b..540e7af 100755 --- a/index.php +++ b/index.php @@ -412,7 +412,7 @@ Exemples: /24 10. foreach (scandir('templates') as $filename) { if (substr($filename, -4) === '.xsl') { $name = substr($filename, 0, -4); - $URL = htmlentities("$BASEDIR/templates/$filename", ENT_QUOTES); + $URL = "$BASEDIR/templates/".rawurlencode($filename); if (isset($options["--stylesheet"]) && $URL == $options["--stylesheet"]) { echo " \n"; } else { @@ -433,7 +433,7 @@ if (!file_exists($SCANSDIR)) mkdir($SCANSDIR); foreach (scandir($SCANSDIR) as $filename) { if (substr($filename, -4) === '.xml') { $name = substr($filename, 0, -4); - $URL = htmlentities("$BASEDIR/$SCANSDIR/$filename", ENT_QUOTES); + $URL = "$BASEDIR/$SCANSDIR/".rawurlencode($filename); if (isset($options["compareWith"]) && $URL == $options["compareWith"]) { echo " \n"; } else {