developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #592: 592-jForms-GET-method.diff

File 592-jForms-GET-method.diff, 1.1 KB (added by Julien, 14 years ago)
  • lib/jelix/plugins/tpl/html/block.form.php

     
    5757    else
    5858        $helpdecorator = "'jFormsHelpDecoratorAlert'";
    5959
    60     $method = strtolower(isset($param[5])?$param[5]:'post');
     60    $method = isset($param[5])?strtolower(str_replace(array('\'','"'),array('',''),$param[5])):'post';
    6161    if($method!='get' && $method!='post')
    6262        $method='post';
    6363
  • lib/jelix/plugins/tpl/html/cfunction.formfull.php

     
    4747    else
    4848        $helpdecorator = "'jFormsHelpDecoratorAlert'";
    4949
    50     $method = strtolower(isset($params[5])?$params[5]:'post');
     50    $method = isset($params[5])?strtolower(str_replace(array('\'','"'),array('',''),$params[5])):'post';
    5151    if($method!='get' && $method!='post')
    5252        $method='post';
    5353