|
02-10-2004, 04:03 PM | #1 |
Green Mole
Join Date: Feb 2004
Location: FRANCE
Posts: 1
|
Small bug in phpdigRewriteUrl()
Excuse my poor English but I'm French...
I have seen that some site doesn't work with phpdig, so I search the reason why and I find that in function phpdigRewriteUrl(), when $path == '/' the line $retour['path'] = ereg_replace('(.*[^/])/?$','\\1/',ereg_replace('^/(.*)','\\1',ereg_replace("/+","/",$path))); return a wrong string, I have seen this on one of my website http://www.evanescence-music.com. So I have juste made a little update of this function by replacing this line by this : if ($path != '/') $retour['path'] = ereg_replace('(.*[^/])/?$','\\1/',ereg_replace('^/(.*)','\\1',ereg_replace("/+","/",$path))); else $retour['path'] = ''; And now it works well... |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Very small bug in PhpDig v.1.8.7 | Edomondo | Bug Tracker | 0 | 03-17-2005 02:50 AM |
mod: small improvements for 1.8.7 | blueyed | Mod Submissions | 0 | 01-27-2005 03:59 AM |
Looks Like A Small Bug In 1.8.1 | vinyl-junkie | Troubleshooting | 6 | 07-07-2004 09:04 PM |
keywords.key_id is too small | bsw114 | Bug Tracker | 0 | 03-04-2004 06:16 PM |
Language small bug | TiM | Bug Tracker | 0 | 03-04-2004 01:17 PM |