diff --git a/app/class/Modelpage.php b/app/class/Modelpage.php index 89765203..3be120c2 100644 --- a/app/class/Modelpage.php +++ b/app/class/Modelpage.php @@ -759,7 +759,7 @@ protected function deepsearch(array $pagelist, string $regex, array $options): a } else { $case = 'i'; } - $regex = '/' . $regex . '/' . $case; + $regex = '/' . preg_quote($regex, '/') . '/'; $pageselected = []; foreach ($pagelist as $page) { $count = 0; diff --git a/app/view/templates/media.php b/app/view/templates/media.php index fd8db432..55a230a8 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -153,6 +153,7 @@ user perms + s code @@ -204,6 +205,14 @@ date('hrdi') ?> uid('name') ?> permissions() ?> + + + + + e($media->getcode()) ?>