Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Double links inside shop?


Lazze Lazer

Recommended Posts

when i move my mouse over some image or link, the statusfield (below,left) says the path to the linktarget twice????? anyone have a clue to why this happens? for example im in the storefront default.php in

/oscom/catalog and presses a link to a product or anything it goes:

 

http://localhost/oscom/catalog/localhost/oscom/catalog/product_info.php?products_id=29&osCsid=266dfe4a931e6fdc35dff3d242046a08

 

one set of those localhost/oscom/catalog has to go....I dont have a clue why this is happening. it worked before

 

Lars

Link to comment
Share on other sites

Hi Lazze Lazer,

 

I had a similar problem, all the links on my site were doubled because I changed one little line of code. :oops:

 

I changed line 69 in the:

 

catalog/includes/functions/html_output.php  

 

from:

 

return $link;  

 

to:  

 

return htmlspecialchars($link) . $link; // Changed this to plug Cross Site Scripting hole  

 

It should have been:  

 

return htmlspecialchars($link); // Changed this to plug Cross Site Scripting hole

 

Other than that, I would recheck the catalog/includes/configure.php domain entries and make sure there are no double addresses there.

 

Good luck!

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

well,

 

strange because i have never been into /functions and changed things...

 

anyway ! i got a major tuppjuck :x (cant translate it properly but U get the point :wink: ) and erased the whole site. downloaded the latest snapshot and installed. now it works again :lol:

 

thnx !!

Link to comment
Share on other sites

Lazze Lazer,

 

downloaded the latest snapshot and installed. now it works again

 

Yea, that's one of those strange things that happens when using the daily snapshot version of osCommerce.

Running osC - 2.2MS2. P.S. Please don't ask for a link to my site, it is on a production server and not available for the general public, yet!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...