preg_match_all('/node\/(\d)/', $system_path, $matches, PREG_SET_ORDER);

should be:

preg_match_all('/node\/(\d+)/', $system_path, $matches, PREG_SET_ORDER);

Comments

Johnny vd Laar’s picture

Status: Active » Needs review
StatusFileSize
new611 bytes

And a patch.

Johnny vd Laar’s picture

StatusFileSize
new682 bytes

A slightly better version which uses preg_match instead of preg_match_all (we will only have one node id anyway).

dhavyd’s picture

Thanks! I'll check the patch and apply it so the fix appears on the next release...

dhavyd’s picture

Status: Needs review » Reviewed & tested by the community

The patch works fine and I've applied it. The changes will appear in the next release... Thanks!

dhavyd’s picture

Status: Reviewed & tested by the community » Closed (fixed)