Zend Framework

Filter dropping new lines

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.3
  • Fix Version/s: None
  • Component/s: Zend_Filter
  • Labels:
    None
  • Fix Version Priority:
    Should Have

Description

A filter dropping new line control characters (\n, \r\n, \r) would be nice, maybe something like that:

<?php

require_once 'Zend/Filter/Interface.php';

class Zend_Filter_DropNewLines implements Zend_Filter_Interface
{

    public function filter($value)
    {

        return str_replace(array("\n", "\n\r", "\r"), '', $value);

    }

}

Issue Links

Activity

Hide
Martin Hujer added a comment -

I'll submit the proposal on tomorrow afternoon (GMT+1) and code with unit tests.

Show
Martin Hujer added a comment - I'll submit the proposal on tomorrow afternoon (GMT+1) and code with unit tests.
Hide
Martin Hujer added a comment -

Filter has been accepted to incubator.

Show
Martin Hujer added a comment - Filter has been accepted to incubator.
Hide
Martin Hujer added a comment -

Filter is in the trunk and in 1.6 release branch.

Show
Martin Hujer added a comment - Filter is in the trunk and in 1.6 release branch.
Hide
Ralph Schindler added a comment -

Fixed in ZF-3793.

Resolved at r10539 in trunk.
Resolved at r10637 in release 1.6 branch.

Show
Ralph Schindler added a comment - Fixed in ZF-3793. Resolved at r10539 in trunk. Resolved at r10637 in release 1.6 branch.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1h
Original Estimate - 1 hour Original Estimate - 1 hour
Remaining:
1h
Time Spent - 1 hour Remaining Estimate - 1 hour
Logged:
1h
Time Spent - 1 hour Remaining Estimate - 1 hour