Fixed Data too long sql error in the reason field for Reply Ban

refael

Well-known member
Seems there isn't length validation for the reason field for Reply Ban.
I overrided the html maxlength attribute and wrote a long text, which ended with

PHP:
Mysqli statement execute error : Data too long for column 'reason' at row 1
Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in XenForo/Model/Thread.php at line 2564
XenForo_Model_Thread->insertThreadReplyBan() in XenForo/ControllerPublic/Thread.php at line 848
XenForo_ControllerPublic_Thread->actionReplyBans() in XenForo/FrontController.php at line 347
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in C:/xampp/htdocs/xf/index.php at line 13
 
Top Bottom