[TYPO3-core] RFC: #10741: Create version of page crashes in Cache

Steffen Kamper info at sk-typo3.de
Mon Mar 30 21:42:58 CEST 2009


Hi Steffen,

Steffen Müller schrieb:
> Hi.
> 
> On 30.03.2009 10:37 Steffen Kamper wrote:
>> here is the patch according to the changes in FLOW3. I didn't included
>> the other changes from Robert which doesn't belong to this issue.
>>
> 
> +1 after reading and testing, with one minor cosmetic objection:
> 
> I don't like the pattern, since it uses unnecessary escape sequence for
> the dash: \-
> 
> +	const PATTERN_ENTRYIDENTIFIER = '/^[a-zA-Z0-9_%\-&]{1,250}$/';
> 
> The dash is the only character which needs to be escaped in classes. But
> even this escape sequence can be avoided by putting the dash at the very
> beginning of the class:
> 
> +	const PATTERN_ENTRYIDENTIFIER = '/^[-_%&a-zA-Z0-9]{1,250}$/';
> 
> So we'd have no escaping at all and less confusion for the unexperienced
> regex people.
> 
> Is it worth to propose this upstream for FLOW3?
> 

my first patch also didn't used the slash.
For me this cosmetic is not important. I took expression 1:1 from FLOW3. 
  Using same pattern as in FLOW3 is more important here. But i will ask 
Robert.

vg Steffen


More information about the TYPO3-team-core mailing list