| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Search not working anymore... | ||||
![]() |
|
|||
|
|
Thread Tools | Search this Thread |
|
#11
|
|||||||
|
|||||||
|
Here's a break down of what they did...
================================ $tmp=strstr($QUERY_STRING, "XCARTSESSID="); // Find the xcart session ID in the search string if (!empty($tmp)) // If the session ID is found do the following $QUERY_STRING=ereg_replace("XCARTSESSID=([0-9a-zA-Z]*)", "", $QUERY_STRING); // Strip out the xcart session ID and its value then replace it with nothing, then set $QUERY_STRING equal to the resulting value if(!empty($QUERY_STRING)) { // if the resulting value is not empty then do the following ================================ They then just bipassed all that with: ================================ if(isset($substring)) { // if you have a substring (the value submitted by the form) then run the following code ================================ Weird thing is, that the code they stripped out is in my search.php file and it works well. Hope that's clear!
__________________
Following the signature guidelines |
|||||||
|
#12
|
|||||||
|
|||||||
|
guytje,
It's been while since a post was made here, but I thought I would let you know that I turned off the session ID's on my site and ended up using your code mod from the x-cart team to fix my search as well. What comes around goes around, I guess.
__________________
Following the signature guidelines |
|||||||
|
#13
|
|||||||
|
|||||||
|
|
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||