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

XenForo_Input cleaning array of uints?

Discussion in 'XenForo Development Discussions' started by tyteen4a03, Mar 21, 2015.

  1. tyteen4a03

    tyteen4a03 Well-Known Member

    Is this possible?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Do you mean this?

    PHP:
    $uints $this->_input->filterSingle('uints', array(XenForo_Input::UINT'array' => true));
     
  3. tyteen4a03

    tyteen4a03 Well-Known Member

    I was missing the 'array' => true part. Thanks!
     
  4. tyteen4a03

    tyteen4a03 Well-Known Member

    What if I am using XenForo_Input::rawFilter? I have this line of code:

    PHP:
    XenForo_Input::rawFilter($arrayOfUIntsXenForo_Input::UINT, array("array" => true));
    but it spits out an int instead.
     

Share This Page