I'm using the amazing e-commerce plugin called Shopp. Problem is that my host (mediaTemple) has some issues with SSL. The Shopp guys have a good solution to the problem here.
All I need to do is add this line to the if statement on line 49 of canonical.php:
$requested_url = str_replace(':443', '', $requested_url);
My question is, how can I accomplish this using function.php rather than hacking canonical.php? If not using function.php, then another way that is more upgrade friendly?