diff --git a/index.php b/index.php index 2098abe..e3ae332 100755 --- a/index.php +++ b/index.php @@ -406,7 +406,7 @@ if (!$lazyload && sizeof($dirs) + sizeof($files) > $thumbs_pr_page) { if ($requestedDir != "" && $requestedDir != "photos") { $breadcrumb_navigation = "
"; $breadcrumb_navigation .= "" . $label_home . " $breadcrumb_separator "; - $navitems = explode("/", $_REQUEST['dir']); + $navitems = explode("/", htmlspecialchars($_REQUEST['dir'])); for ($i = 0; $i < sizeof($navitems); $i++) { if ($i == sizeof($navitems)-1) { $breadcrumb_navigation .= $navitems[$i];