Issues

ZF-12338: Zend_Filter_StripTags should return null if applied to a null value

Issue Type: Bug Created: 2012-07-17T13:51:03.000+0000 Last Updated: 2012-07-17T13:51:03.000+0000 Status: Open Fix version(s): Reporter: Iurii Drozdov (ydrozdov) Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

  • Zend_Filter_StripTags

Related issues: Attachments:

Description

In Zend_Filter_StripTags, if the filter is applied to a null value empty string is returned.

<pre class="highlight">
    /**
     * Defined by Zend_Filter_Interface
     *
     * @todo improve docblock descriptions
     *
     * @param  string $value
     * @return string
     */
    public function filter($value)
    {
        if (is_null($value)) {
            return $value;
        }
        $value = (string)$value;

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts