Welcome Guest, Not a member yet? Register   Sign In
strip_image_tags - More of a documentation issue...
#1

[eluser]Adam Mills[/eluser]
Documents still list is as "strip_image_tags" (Link To Page) but with the version i downloaded today it seems to be "strip_img_tags"
#2

[eluser]sophistry[/eluser]
huh?

if you have a discrepancy to report, you have to post code that illustrates your issue.

here is what i clipped from CI 163 Validation library... it looks to be consistent with the docs.
Code:
/**
     * Strip Image Tags
     *
     * @access    public
     * @param    string
     * @return    string
     */    
    function strip_image_tags($str)
    {                    
        $_POST[$this->_current_field] = $this->input->strip_image_tags($str);
    }
#3

[eluser]Adam Mills[/eluser]
hmm sorry you are absolutely right ... that is what the library has in it. Of course when I call that code like this:

Code:
$rules['body']    = "required|strip_image_tags";

it tells me that it doesn't exist ... but when I call it like this

Code:
$rules['body']    = "required|strip_img_tags";

it works just dandy.
#4

[eluser]sophistry[/eluser]
you must have a Validation.php file in your application/libraries directory then that is overriding the system's Validation.php.

I just grepped the whole CI code base and there is no string "strip_img_tags" in the default CI 163 setup.




Theme © iAndrew 2016 - Forum software by © MyBB