My apologies for the lack of clarity. That would be includes/modules/shipping/usps.php. The relevant modified section looks like this:
if ($http->Connect('production.shippingapis.com', 80))
{
$http->addHeader('Host', 'production.shippingapis.com');
$http->addHeader('User-Agent', 'osCommerce');
$http->addHeader('Connection', 'Close');
if ($http->Get('/shippingapi.dll?' . $request)) $body = preg_replace(array('/\<sup\>\®\<\/sup\>/', '/\<sup\>\™\<\/sup\>/', '/\" /', '/\",/', '/\"<br>/', '/<br>/'), array('RM', 'TM', '",', '" ', '"<br>', 'BREAK'), htmlspecialchars_decode($http->getBody()));
// mail(STORE_OWNER_EMAIL_ADDRESS, STORE_OWNER, $body);
$http->Disconnect();
$body = preg_replace('/&[^; ]{0,6}.?/e', "((substr('\\0',-1) == ';') ? '\\0' : '&'.substr('\\0',1))", $body);
return json_decode(json_encode(simplexml_load_string($body)),TRUE);
}
This could likely be combined into the earlier preg_replace (for increased efficiency) by someone with more patience (like the package maintainer).