Permalink
Browse files

Fix for #721 preg_match was not allowing for .

  • Loading branch information...
1 parent 066c884 commit ab72328f393f29f015f5c5dc42466aedc5d0a372 @Kilandor Kilandor committed Oct 11, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugins/urleditor/inc/urleditor.functions.php
View
5 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?";
}
/**

0 comments on commit ab72328

Please sign in to comment.