Ticket #1945 (closed Bug: fixed)

Opened 2 months ago

Last modified 2 months ago

Sanitize{File,Folder}Name does miss control characters

Reported by: mosipov Assigned to: wwalc
Priority: High Milestone: FCKeditor 2.6
Component: File Browser Version: FCKeditor 2.6 Beta
Keywords: Cc:

Description

functions miss to replace http://en.wikipedia.org/wiki/ASCII#ASCII_control_characters I did in Java with a simple "|[\u0000-\u001F]|\u007F"

Just add to PHP and other connectors

Change History

02/28/08 01:47:46 changed by fredck

  • milestone set to FCKeditor 2.6.

02/28/08 10:00:42 changed by wwalc

  • owner set to wwalc.

To create similar pattern in PHP: \x{001F} utf-8 mode is required, it is available @Windows since 4.2.3 so to be fully compatible with such users I think it's better to simply use cntrl set in regular expression: [:cntrl:].

02/28/08 11:14:30 changed by mosipov

wwalc,

great idea! I adapted it for Java with "\p{Cntrl}" too. I missed to check the api Thx

02/28/08 12:47:44 changed by wwalc

  • component changed from Server : PHP to File Browser.

PHP fixed with [1648], Perl: [1649], Python: [1651], ColdFusion: [1652].

02/28/08 16:30:15 changed by wwalc

It seems that it is impossible to implement such check in Lasso due to language limitations, however I have added just a bascic check of folder and file names with [1655].

Someone could fix this in asp & asp.net, then we can close this ticket.

03/02/08 22:07:13 changed by alfonsoml

Asp fixed with [1672]

03/15/08 18:18:21 changed by fredck

  • status changed from new to closed.
  • resolution set to fixed.

ASP.NET fixed with [1701]. Changelog entry added with [1702].