[TYPO3-core] RFC: #7265: Submodules of Web module can't work with mod.php and the _DISPATCH system

Steffen Kamper info at sk-typo3.de
Tue Dec 9 10:29:33 CET 2008


Hi,

just found a case where the prefix is null, so there is the possibility 
that the ? is the beginning of the string, indexOf will return 0.

So i changed
if(string.indexOf("?"))
to
if(string.indexOf("?") != -1)

to be sure for all cases.

v3 is attached.

vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7265_v3.diff
Type: text/x-diff
Size: 3960 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081209/9374f407/attachment-0001.diff 


More information about the TYPO3-team-core mailing list