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: = $_SERVER['REMOTE_ADDR']; ?>/24 = $_SERVER['SERVER_NAME']; ?> 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 {