Allow HTMLTitleTextField to work on GET forms
authorKunal Mehta <legoktm@gmail.com>
Sat, 25 Jul 2015 01:18:49 +0000 (18:18 -0700)
committerKunal Mehta <legoktm@gmail.com>
Sat, 25 Jul 2015 01:19:36 +0000 (18:19 -0700)
commitba7acbe791317d313c0232210b01bc782251e74f
treed7fe4f713b6e8ba3c191a8137ea0e30dd3cf7d09
parentca56f1fbc32529622cf430fe2ed44347b85e3c24
Allow HTMLTitleTextField to work on GET forms

Just skip validation if it is a GET form and the current input is an
empty string. Callers will need to check that it is not the empty string
though.

Also make sure HTMLForm::mMethod is always lowercase.

Change-Id: I605f32048fe97eebd7e04b6ffd799759aeb7f31e
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLTitleTextField.php