aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-09-19 18:59:09 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-09-19 18:59:09 +0200
commit1d5338348166f66eb92f2ecfdfc87a54427f68b8 (patch)
treebc00d0e8aaef05925e229cb781b2475d3125f8f1 /phpBB/includes
parent5091600a16eeee4dbd4c40ca1f051a9774887100 (diff)
parent9bf58697dcc18881086d1bcc4565a6ae77b4dd17 (diff)
downloadforums-1d5338348166f66eb92f2ecfdfc87a54427f68b8.tar
forums-1d5338348166f66eb92f2ecfdfc87a54427f68b8.tar.gz
forums-1d5338348166f66eb92f2ecfdfc87a54427f68b8.tar.bz2
forums-1d5338348166f66eb92f2ecfdfc87a54427f68b8.tar.xz
forums-1d5338348166f66eb92f2ecfdfc87a54427f68b8.zip
Merge pull request #2973 from marc1706/ticket/13073-develop
Ticket/13073 develop * marc1706/ticket/13073-develop: [ticket/13073] Remove _test suffix from common test class [ticket/13073] Switch $input with $expected and add paths with letters [ticket/13073] Use abstract class for controller helper route tests [ticket/13073] Add path regex to get_preg_expression() and add unit tests [ticket/13073] Use just one regex in helper route() [ticket/13073] Properly place comments in helper [ticket/13073] Use correct class names in test files [ticket/13073] Rework route tests and add tests for more directory types [ticket/13073] Test that routes from subfolders like /adm work [ticket/13073] Add tests for routes from adm pages [ticket/13073] Add phpbb root path with mod rewrite enabled for proper routes
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index a61518401c..9e1e1cae0e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3317,6 +3317,11 @@ function get_preg_expression($mode)
case 'table_prefix':
return '#^[a-zA-Z][a-zA-Z0-9_]*$#';
break;
+
+ // Matches the predecing dot
+ case 'path_remove_dot_trailing_slash':
+ return '#^(?:(\.)?)+(?:(.+)?)+(?:([\\/\\\])$)#';
+ break;
}
return '';