#168 Fix referrer check on edit.php