Are you sure? I just tried die($_SERVER[’HTTP_REFERER’]); on line 50 if index.php and the colon was in it’s usual place. However when placing it in a snippet somewhere the colon is missing. So presumably it is being garbled by MODx along the way somewhere. do not have Slimstat installed by the way.
$_SERVER[$outside] = isset($_SERVER[$outside]) ? preg_replace("/[^A-Za-z0-9_\-\,\.\:\+\&\%\=\?\/[:space:]\s]/", "", $_SERVER[$outside]): '';