Don't add hidden input fields for checkboxes

The hidden form field for checkboes assumed that the code parsing the form
submission would use the last value. This is not the case for eg InjectRequest.
This commit is contained in:
Ivan Skytte Jørgensen
2015-12-11 14:38:51 +01:00
parent a747f14bb7
commit fd1a6db738

@ -2456,11 +2456,6 @@ bool Parms::printParm ( SafeBuf* sb,
// s is NULL for GigablastRequest parms
if ( ! s && m->m_def && m->m_def[0]=='1' )
val = " checked";
// in case it is not checked, submit that!
// if it gets checked this should be overridden then
sb->safePrintf("<input type=hidden name=%s value=0>"
, cgi );
//else
sb->safePrintf("<input type=checkbox value=1 ");
//"<nobr><input type=button ");
if ( m->m_page == PAGE_FILTERS)