Added check for spaces before doing a preg_split so malformed auth headers don't cause PHP errors.
Hardened the code that cleans up headers so that malformed headers don't cause PHP errors.
Hardened the code that cleans up headers so that malformed headers don't cause PHP errors.