Problem/Motivation
Add to the path something like 'demandes-d’accès-à-l’information-complétées' and it goes into an endless loop until it eventually times out.
Proposed resolution
Use explode and implode instead of strrpos and substr.
Remaining tasks
* Add patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | path_alias_xt_2341203_fix_endless_loop_1.patch | 1.81 KB | bogdan1988 |
| #2 | path_alias_xt_2341203_fix_endless_loop.patch | 1.81 KB | fabianx |
Comments
Comment #1
fabianx commentedHere is a patch.
Comment #2
fabianx commentedThe reason is that strrpos is not unicode safe, using explode / implode however works.
Last patch missed one drupal_substr usage.
Comment #3
catchPatch looks good.
Comment #4
bogdan1988 commentedFor me this patch doesn't work for edit pages. I had to change this line
$path = $src . '/' . implode('/', $path_suffix);Only after adding extra '/' edit pages work well. Thank you.
Comment #5
fabianx commentedCNW based on that comment
Comment #6
bogdan1988 commentedComment #7
rdeboerThanks Fabianx and Bogdan1988 for the combined effort and patch!
Hope to get to this soon.
Rik
Comment #8
fabianx commentedThanks, RdeBoer
Comment #9
bogdan1988 commentedThank you, RdeBoer
Comment #13
adriancidThanks @all for the patch.