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

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

    old new  
    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

    old new  
    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 
Download in other formats: Original Format