Commit 2731d72
committed
minor #4343 Compiled PHP for customized route matching (GeertDD)
This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes #4343).
Discussion
----------
Compiled PHP for customized route matching
The second parameter of `rtrim()` is a character mask. By checking if `rtrim($pathinfo, '/contact') === ''`, `$pathinfo` could be any URL containing those characters and not only "/contact" which was configured as the route path, for example:
$pathinfo = '/octocat';
var_dump(rtrim($pathinfo, '/contact') === ''); // bool(true)
Commits
-------
fb5e820 Compiled PHP for customized route matching1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
0 commit comments