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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Fabianx’s picture

Here is a patch.

Fabianx’s picture

Status: Active » Needs review
FileSize
1.81 KB

The reason is that strrpos is not unicode safe, using explode / implode however works.

Last patch missed one drupal_substr usage.

catch’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good.

Bogdan1988’s picture

For 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.

Fabianx’s picture

Status: Reviewed & tested by the community » Needs work

CNW based on that comment

Bogdan1988’s picture

RdeBoer’s picture

Thanks Fabianx and Bogdan1988 for the combined effort and patch!
Hope to get to this soon.
Rik

Fabianx’s picture

Status: Needs work » Needs review

Thanks, RdeBoer

Bogdan1988’s picture

Thank you, RdeBoer

  • adriancid committed eb13da5 on 7.x-1.x
    Issue #2341203 by Fabianx, Bogdan1988, adriancid: Endless loop when...

adriancid’s picture

Status: Needs review » Fixed

Thanks @all for the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.