[TYPO3-core] Getting an overview

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Feb 9 17:08:17 CET 2007


Ernesto Baschny [cron IT] wrote: on 09.02.2007 16:54:

> Hi Michael,
> 
> I had a problem with the new default in my USER FE-plugins that were
> using POST and no GET parameters at all. So my form was build like that:
> 
> <form action="index.php?id=155" method="post">
>   ...
>  <input type="text" name="tx_cronextension_pi[swords]" />
>   ...
> </form>
> 
> on that page I had my plugin. I created the action link with typoLink,
> but no cHash was added because we have no piVars on that link!
> 
> But then when submitting the FORM, the piVars come from
> t3lib_div::GParrayMerged, which merge GET and POST vars. So piVars end
> up with many values. After the TYPO3 update this form no longer works
> because the cHash check comes into action and I get
> 
>   Reason: Request parameters could not be validated (&cHash empty)
> 
> How should POST forms be build then?

My mistake. I just have to make the plugin that handles the form POST
either set $this->pi_checkCHash = FALSE or be an USER_INT and it seems
to work. So it seems to work again.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list