diff --git a/plugins/urleditor/inc/urleditor.functions.php b/plugins/urleditor/inc/urleditor.functions.php index e4c1f0d90..230e20198 100644 --- a/plugins/urleditor/inc/urleditor.functions.php +++ b/plugins/urleditor/inc/urleditor.functions.php @@ -20,12 +20,12 @@ function cot_apply_rwr() { global $cfg, $structure; - if (isset($_GET['rwr']) && !empty($_GET['rwr']) && preg_match('`^[\w\p{L}/\-_\ \+]+?$`u', $_GET['rwr'])) + if (isset($_GET['rwr']) && !empty($_GET['rwr']) && preg_match('`^[\w\p{L}/\-_\ \+\.]+?$`u', $_GET['rwr'])) { // Ignore ending slash and split the path into parts $path = explode('/', (mb_strrpos($_GET['rwr'], '/') == mb_strlen($_GET['rwr']) - 1) ? mb_substr($_GET['rwr'], 0, -1) : $_GET['rwr']); $count = count($path); - + print_r($path); if ($count == 1) { if (isset($structure['page'][$path[0]])) @@ -83,6 +83,7 @@ function cot_apply_rwr() } } } + echo "WHAT?"; } /**