View Single Post
  #62  
Old 05-17-2006, 03:39 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default

Quote:
Originally Posted by pmdye


As-is, that strips out way more than I think it should, to the point that it strips out the leading /xcart/, and redirects hits back to /home.html.

However, removing
Code:
$path = eregi_replace($xcart_web_dir,'',$path);

and keeping the ^ in the preg_replace_callback's seems to work just fine!

well, at least part of my logic was 'sane'
glad it's working now, i'll be sure to include the working change in the next release

EDIT: please test 2 situations for me if you get a chance.
URL 1: http://www.yoursite.com/path2shop/image.php?productid=1234
URL 2: image.php?productid=1234

I'm wondering if both will be matched in the revised code, or just the 2nd url. (sorry, i'd test this myself, but the past few days I've been knee deep in another project for my company)
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote