#2646: regex to test image (file) extensions is incorrect
---------------------------------------+------------------------------------
Reporter: jsh_crw | Owner:
Type: Bug | Status: new
Priority: Low | Milestone:
Component: General | Version: FCKeditor 2.6.3
Keywords: upload extension check js |
---------------------------------------+------------------------------------
- /fckeditor/fckconfig.js line 301, 306, and 311 all have incorrect regex
for extensions (maybe should check elsewhere).
I have only tested 306 which fails to work properly at
/fckeditor/editor/dialog/fck_image/fck_image.js line 500 'if' statement if
the file just ends with the extensions but not the dot, such as "fakepng".
- Basically, the dot at the beginning is ".(extensions)", but should be
"\\.(extensions) because the dot alone is anything and not just a dot.
This may not be urgent as the browser (or something) kicks it back anyway
if the file isn't the correct type underneath, but it shouldn't get that
far if it's obviously incorrect and it's an easy fix.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2646>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac