if ($value == 'formmethodpost') {
// Use it
$data['__form_method'] = 'post';
- } elseif (($value == 'formmethodget') && (!isSpider()) && (!isSessionValid())) {
+ } elseif (($value == 'formmethodpost') && (!isSpider()) && (!isSessionValid())) {
// Then expand 'value' with session id
if (strpos($data['value'], '?') !== FALSE) {
// '?' is set
// Filter for adding hidden session id
function FILTER_ADD_INPUT_HIDDEN_SESSION_ID ($filterData) {
// Is a spider detected?
- if ((!isSpider()) && (!isSessionValid())) {
+ if ((!isSpider()) && (!isSessionValid()) && ($filterData['__form_method'] == 'get')) {
// No, then add the hidden field
$filterData['__replacer'] .= '<input type="hidden" name="' . session_name() . '" value="' . session_id() . '" />';
} // END - if