// Three different ways to debug...
//* DEBUG: */ reportBug(__FUNCTION__, __LINE__, 'URL=' . $url);
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'URL=' . $url);
- //* DEBUG: */ die($url);
+ /* DEBUG: */ die($url);
// We should not sent a redirect if headers are already sent
if (!headers_sent()) {
$hex .= padLeftZero(dechex(ord(substr($hash, $i, 1))), 2);
} // END - if
+ // Make sure 'length modulo 2' = 0
+ assert((strlen($hex) % 2) == 0);
+
// Return it
return $hex;
}