fix url
This commit is contained in:
		| @ -117,3 +117,7 @@ if ($preset && isset($presets[$preset])) { | |||||||
| } | } | ||||||
|  |  | ||||||
| $options["--datadir"] = $DATADIR; | $options["--datadir"] = $DATADIR; | ||||||
|  |  | ||||||
|  | /*echo "<!--"; | ||||||
|  | var_dump($options); | ||||||
|  | echo "-->\n";*/ | ||||||
| @ -412,7 +412,7 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10. | |||||||
| foreach (scandir('templates') as $filename) { | foreach (scandir('templates') as $filename) { | ||||||
|   if (substr($filename, -4) === '.xsl') { |   if (substr($filename, -4) === '.xsl') { | ||||||
|     $name = substr($filename, 0, -4); |     $name = substr($filename, 0, -4); | ||||||
|     $URL = htmlentities("$BASEDIR/templates/$filename", ENT_QUOTES); |     $URL = "$BASEDIR/templates/".rawurlencode($filename); | ||||||
|     if (isset($options["--stylesheet"]) && $URL == $options["--stylesheet"]) { |     if (isset($options["--stylesheet"]) && $URL == $options["--stylesheet"]) { | ||||||
|       echo "              <option value='$URL' selected>$name</option>\n"; |       echo "              <option value='$URL' selected>$name</option>\n"; | ||||||
|     } else { |     } else { | ||||||
| @ -433,7 +433,7 @@ if (!file_exists($SCANSDIR)) mkdir($SCANSDIR); | |||||||
| foreach (scandir($SCANSDIR) as $filename) { | foreach (scandir($SCANSDIR) as $filename) { | ||||||
|   if (substr($filename, -4) === '.xml') { |   if (substr($filename, -4) === '.xml') { | ||||||
|     $name = substr($filename, 0, -4); |     $name = substr($filename, 0, -4); | ||||||
|     $URL = htmlentities("$BASEDIR/$SCANSDIR/$filename", ENT_QUOTES); |     $URL = "$BASEDIR/$SCANSDIR/".rawurlencode($filename); | ||||||
|     if (isset($options["compareWith"]) && $URL == $options["compareWith"]) { |     if (isset($options["compareWith"]) && $URL == $options["compareWith"]) { | ||||||
|       echo "              <option value='$URL' selected>$name</option>\n"; |       echo "              <option value='$URL' selected>$name</option>\n"; | ||||||
|     } else { |     } else { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user