[TYPO3-mvc] own widget.paginate and f.widget.paginate throws error

Johannes C. Schulz - EnzephaloN IT-Solutions info at enzephalon.de
Tue Jun 21 13:26:08 CEST 2011


Thanks for the Tipp.
It's just for now, I hope to replace it by a function which assigns the PID
of the current page. Tried something, but didn't work, so I did it
"hardcore" for testing.

Best regards
Johannes


-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Peter Niederlag
Gesendet: Dienstag, 21. Juni 2011 12:04
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] own widget.paginate and f.widget.paginate throws
error

Hello,

Am 17.06.2011 14:25, schrieb Johannes C. Schulz - EnzephaloN IT-Solutions:
[...]
>
>                    $storage = t3lib_div::_GP('id');

Did you see that big sign above your workdesk "All Input from userland 
is evil!!!"?

Please make sure to test/clean all properties from GET/POST before 
passing them along!

Here a simple cast to int would make things a lot safer = 
(int)t3lib_div::_GP('id'); be prepared this will give you a '0' on an 
empty string though!

Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc




More information about the TYPO3-project-typo3v4mvc mailing list