diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index b6ef4da119..8ea523d18b 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -6615,7 +6615,7 @@ public function renderElement($key, $value, $attributes, $required_data = array( break; case 'ip': - $ret = vartrue($parms['pre']).$this->text($key, e107::getIPHandler()->ipDecode($value), 32, $parms).vartrue($parms['post']); + $ret = vartrue($parms['pre']).$this->text($key, e107::getIPHandler()->ipDecode($value), 45, $parms).vartrue($parms['post']); break; case 'email': diff --git a/e107_tests/tests/unit/e_formTest.php b/e107_tests/tests/unit/e_formTest.php index a90fbb0bf9..685c5e935c 100644 --- a/e107_tests/tests/unit/e_formTest.php +++ b/e107_tests/tests/unit/e_formTest.php @@ -1250,7 +1250,7 @@ public function testRenderElement() 'checkboxes_001' => "
", // 'country_001' => "", - 'ip_001' => "", + 'ip_001' => "", 'templates_001' => "", 'radio_001' => " ",