PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Bug Tracker

Reply
 
Thread Tools
Old 02-10-2004, 04:03 PM   #1
Goth
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...
Goth is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 08:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.