diff options
Diffstat (limited to 'includes/Request/PathRouter.php')
-rw-r--r-- | includes/Request/PathRouter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Request/PathRouter.php b/includes/Request/PathRouter.php index 1082fa9a7017..444aea7be0f7 100644 --- a/includes/Request/PathRouter.php +++ b/includes/Request/PathRouter.php @@ -101,7 +101,7 @@ class PathRouter { if ( !isset( $options['strict'] ) || !$options['strict'] ) { // Unless this is a strict path make sure that the path has a $1 if ( strpos( $path, '$1' ) === false ) { - if ( substr( $path, -1 ) !== '/' ) { + if ( $path[-1] !== '/' ) { $path .= '/'; } $path .= '$1'; |