Quote Originally Posted by DrByte View Post
I'm not sure this is correct logic. It assumes that if the main_page param is blank, that a product id is. And blindly redirects to it, even if it's blank.
Uhm, what do you mean "even if it's blank"? It can't be blank, it's inside
Code:
  if (isset($_GET['products_id']) && (!isset($_SESSION['check_valid']) || $_SESSION['check_valid'] != 'false')) {
Can't think of any valid situation where main_page would be blank, but products_id would exist... Maybe it's just my time to go to bed...

It's definitely an invalid URL so we're just trying to get the best out of it.

I have no idea if some URL rewriter was used, I only noticed potential problems with canonical URLs, otherwise would've never posted it here...