- // Construct the url
- $url = '://' . crackerTrackerServerName() . crackerTrackerScriptName() . '?' . crackerTrackerQueryString();
-
- // Do we have SSL?
- if (crackerTrackerSecured()) {
- // HTTPS
- $url = 'https' . $url;
- } else {
- // HTTP
- $url = 'http' . $url;
- }
-
- // And redirect
- crackerTrackerSendRawRedirect($url);
+ // Construct and redirect to same URL
+ crackerTrackerSendRawRedirect(sprintf('%s://%s%s?%s',
+ (crackerTrackerSecured() ? 'https' : 'http'),
+ crackerTrackerServerName(),
+ crackerTrackerScriptName(),
+ crackerTrackerQueryString()
+ ));