[TYPO3-core] FYI #16795: t3lib_div::unQuoteFilenames fails to detect quotes properly
François Suter
fsu-lists at cobweb.ch
Wed Dec 22 09:37:25 CET 2010
Hi,
> Be aware that t3lib_div::unQuoteFilenames is also used by
> tslib_cObj::typoLink and by t3lib_parsehtml_proc::TS_links_rte to
> explode typolink parameters. Please make sure these are not broken
> especially when the class parameter is quoted and contains multiple
> classes separated by spaces, and/or when the title parameter contains
> spaces and/or quotes.
Wouldn't it make sense to duplicate the method in such a case? It really
doesn't feel good to have a method called "unQuoteFilenames" that is
used to parsing some specific string syntax. I would be much more at
ease to have a separate "parseTypolinkParameters" method or some similar
name, even if - at first - it is a simple copy of "unQuoteFilenames".
They could then evolve separately, which seems much safer to me. What do
you think?
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-team-core
mailing list