Closed torvista closed 1 year ago
Rather than detect the problem late and redirect, it seems better to validate inputs before any output is sent, i.e. up around line 40 of category_product_listing.php
. I've added code to validate pID against current_category_id by augmenting sniffer
, which seems a sensible place for generic DB operations, the code to check result of SELECT COUNT
was getting a bit cumbersome.
Please see PR #5851.
If you move a product from a category, then after completing the move, go back to that category using the Back button (twice), you pass the Move infobox on the way, creating the debug:
I thought it would be straightforward to add a redirect before 12, back to the original category if $pInfo not set, as handily $current_category_id still exists. But, no, another error is created related to zen_redirect and the keepalive module...