preg_match_all('/node\/(\d)/', $system_path, $matches, PREG_SET_ORDER);
should be:
preg_match_all('/node\/(\d+)/', $system_path, $matches, PREG_SET_ORDER);
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodeids-pregmatch-1917118-2.patch | 682 bytes | Johnny vd Laar |
| #1 | nodeids-pregmatch-1917118-1.patch | 611 bytes | Johnny vd Laar |
Comments
Comment #1
Johnny vd Laar commentedAnd a patch.
Comment #2
Johnny vd Laar commentedA slightly better version which uses preg_match instead of preg_match_all (we will only have one node id anyway).
Comment #3
dhavyd commentedThanks! I'll check the patch and apply it so the fix appears on the next release...
Comment #4
dhavyd commentedThe patch works fine and I've applied it. The changes will appear in the next release... Thanks!
Comment #5
dhavyd commented