Bugfix
This commit is contained in:
@@ -107,7 +107,14 @@ class OfficeIndexService
|
|||||||
parse_str($parts['query'], $query);
|
parse_str($parts['query'], $query);
|
||||||
|
|
||||||
if (!empty($query['p'])) {
|
if (!empty($query['p'])) {
|
||||||
$p = rawurldecode((string) $query['p']);
|
$p = (string) $query['p'];
|
||||||
|
|
||||||
|
// Query-Parameter korrekt dekodieren
|
||||||
|
$p = urldecode($p);
|
||||||
|
|
||||||
|
// Leerzeichen aus Query-Parametern wieder zu '+' normalisieren
|
||||||
|
$p = str_replace(' ', '+', $p);
|
||||||
|
|
||||||
$ext = strtolower(pathinfo($p, PATHINFO_EXTENSION));
|
$ext = strtolower(pathinfo($p, PATHINFO_EXTENSION));
|
||||||
|
|
||||||
if (in_array($ext, ['docx', 'xlsx', 'pptx'], true)) {
|
if (in_array($ext, ['docx', 'xlsx', 'pptx'], true)) {
|
||||||
|
|||||||
@@ -132,7 +132,12 @@ class PdfIndexService
|
|||||||
|
|
||||||
if (!empty($query['p'])) {
|
if (!empty($query['p'])) {
|
||||||
$p = (string) $query['p'];
|
$p = (string) $query['p'];
|
||||||
$p = rawurldecode($p);
|
|
||||||
|
// Query-Parameter korrekt dekodieren
|
||||||
|
$p = urldecode($p);
|
||||||
|
|
||||||
|
// Leerzeichen aus Query-Parametern wieder zu '+' normalisieren
|
||||||
|
$p = str_replace(' ', '+', $p);
|
||||||
|
|
||||||
// deine Links enthalten oft "pdf/DATEI.pdf"
|
// deine Links enthalten oft "pdf/DATEI.pdf"
|
||||||
// => wird zu "/files/pdf/DATEI.pdf"
|
// => wird zu "/files/pdf/DATEI.pdf"
|
||||||
|
|||||||
Reference in New Issue
Block a user