Project

General

Profile

Actions

Bug #39683

closed

wrong character class in valueCheck for "alphanum_x"

Added by Stefan Froemken over 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2012-08-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Have a look here:
http://www.php.net/manual/de/regexp.reference.character-classes.php

Within character classes \, -, ^ are special characters, so you have to excape them.

But in method: checkValue_input_Eval you have following:

case 'alphanum_x':
    $value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value);
break;

it should be:

case 'alphanum_x':
    $value = preg_replace('/[^a-zA-Z0-9_\-]/', '', $value);
break;

Stefan


Files

39683-45.patch (913 Bytes) 39683-45.patch Jochen Weiland, 2012-09-01 13:36
39683-46.patch (927 Bytes) 39683-46.patch Jochen Weiland, 2012-09-01 13:36
39683-47.patch (927 Bytes) 39683-47.patch Jochen Weiland, 2012-09-01 13:36
39683-60b1.patch (921 Bytes) 39683-60b1.patch Jochen Weiland, 2012-09-01 13:36
Actions

Also available in: Atom PDF