Bugfix
This commit is contained in:
@@ -222,7 +222,12 @@ class IndexPageListener
|
|||||||
|
|
||||||
foreach (['file', 'p', 'f'] as $param) {
|
foreach (['file', 'p', 'f'] as $param) {
|
||||||
if (!empty($query[$param])) {
|
if (!empty($query[$param])) {
|
||||||
$candidate = urldecode((string) $query[$param]);
|
$candidate = (string) $query[$param];
|
||||||
|
|
||||||
|
// sicher decodieren (Contao 4 + 5)
|
||||||
|
$candidate = html_entity_decode($candidate, ENT_QUOTES);
|
||||||
|
$candidate = rawurldecode($candidate);
|
||||||
|
|
||||||
$ext = strtolower(pathinfo($candidate, PATHINFO_EXTENSION));
|
$ext = strtolower(pathinfo($candidate, PATHINFO_EXTENSION));
|
||||||
|
|
||||||
if (in_array($ext, ['pdf', 'docx', 'xlsx', 'pptx'], true)) {
|
if (in_array($ext, ['pdf', 'docx', 'xlsx', 'pptx'], true)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user