Bug #32834
closed
Added by Steffen Gebert almost 13 years ago.
Updated almost 11 years ago.
Description
UTF Byte Order Mark (BOM) can cause trouble, when they occur at the beginning of a file and TYPO3 functions don't skip this.
t3lib_div::getUrl()
should just return the file's contents with BOM stripped (if there was one..). IMHO it's more metadata than part of the content.
See also Wikipedia: BOM
Files
I'm not sure if it's the best way to remove the BOM in getUrl(), because theoretically this could be any file, not only text files.
If we introduce this behavior once and have to remove it again, because of troubles with non-text files, we'll have regressions with extensions already expecting the automatic BOM removal.
- Category set to Miscellaneous
- Status changed from New to Needs Feedback
What about raising a warning in case of a BOM?
Sounds good. Warning in which log?
As we have now one central logging, I think it should go there.
But also why should we warn if it is a file that must contain BOM? We will throw errors for something that is normal.
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF