Project

General

Profile

Actions

Feature #11291

closed

Change validators to make use of filter_var() if possible

Added by Patrick Broens almost 14 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2010-12-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Problem:
Since PHP 5.2 we have the filter_var() function, which is not used in the validators. This makes it more easy to validate certain things, instead of using own methods.

Solution:
Replace own methods with filter_var() if possible


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #11292: EXT:form - Change filters to make use of filter_var() if possibleClosed2010-12-05

Actions
Related to TYPO3 Core - Feature #72869: EXT:form - Base validators and filters on extbaseRejected2016-01-21

Actions
Actions #1

Updated by Oliver Hader about 13 years ago

  • Tags set to FormWizard
Actions #2

Updated by Oliver Hader about 13 years ago

  • Project changed from 135 to TYPO3 Core
  • Category deleted (Validation)
Actions #3

Updated by Oliver Hader about 13 years ago

  • Category set to Form Framework
Actions #4

Updated by Oliver Hader about 13 years ago

  • Target version set to 4.7.0
  • PHP Version set to 5.3
  • TYPO3 Version set to 4.6
Actions #5

Updated by Stefan Neufeind almost 13 years ago

all below typo3/sysext/form/Classes/System/Filter/ which is then used in the Validators under typo3/sysext/form/Classes/System/Validate/ for comparison

if ($this->filter->filter($value) !== $value) {
return FALSE;
}

Actions #6

Updated by Stefan Neufeind almost 13 years ago

Does this make things easier? We need the filters anyway afaik and using them makes sure filtering and validation follows the exact same rules imho.

Actions #7

Updated by Steffen Ritter over 12 years ago

  • Target version deleted (4.7.0)
Actions #8

Updated by Mathias Schreiber almost 10 years ago

  • Target version set to 7.5
Actions #9

Updated by Björn Jacob over 9 years ago

  • Category changed from Form Framework to 1602
Actions #10

Updated by Björn Jacob over 9 years ago

  • Category changed from 1602 to Form Framework
Actions #11

Updated by Benni Mack about 9 years ago

  • Target version deleted (7.5)
Actions #12

Updated by Björn Jacob about 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee changed from Patrick Broens to Ralf Zimmermann

Do we still need this ticket since the rewrite?

Actions #13

Updated by Ralf Zimmermann about 9 years ago

  • Assignee changed from Ralf Zimmermann to Björn Jacob

The filter logic is not touched at this time, so this ticket could be interesting.

Actions #14

Updated by Björn Jacob about 9 years ago

  • Status changed from Needs Feedback to New
  • Assignee deleted (Björn Jacob)
  • Target version set to 8 LTS
Actions #15

Updated by Björn Jacob almost 9 years ago

  • Status changed from New to Closed
  • Target version deleted (8 LTS)
  • PHP Version deleted (5.3)

It would be better to rewrite the validators and base them on extbase. See #72869.

Actions

Also available in: Atom PDF