1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Resolved Bug Reports' started by rellect, Aug 27, 2014.

  1. rellect

    rellect 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
     
    Lexy and pegasus like this.
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed now, thanks.
     
  3. Lexy

    Lexy Active Member

    You deserve some kind of medal for all your erfort to make xenforo more friendly.
     
    rellect likes this.

Share This Page