Bug #32834
closedRemove BOM in getUrl()
0%
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
Updated by Markus Klein over 11 years ago
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.
Updated by Stefan Galinski over 11 years ago
- Category set to Miscellaneous
- Status changed from New to Needs Feedback
Updated by Steffen Gebert over 11 years ago
What about raising a warning in case of a BOM?
Updated by Alexander Opitz over 11 years ago
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.
Updated by Alexander Opitz almost 11 years ago
- 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.