From 89877398426f496c6e0463ed15c3440a09ae08f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 27 Dec 2021 00:55:42 +0100 Subject: [PATCH] fix special chars for dir attr. --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 5bfa362..165ae8b 100644 --- a/index.php +++ b/index.php @@ -277,7 +277,8 @@ function build_blocks( $items, $folder ) { if( $sub_items ) { - echo "
"; + $file_url = htmlEntities(rawurlencode($file), ENT_QUOTES); + echo "
"; build_blocks( $sub_items, $file ); echo "
"; }