View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
03568Bug reportsTheme editorpublic2009-08-24 22:27
Reporterkadejo Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.85+ 
Fixed in Version1.85+ 
Summary03568: sanitize_paranoid_string function takes out hyphens from filenames
Description

what implies that an image with hyphen in the filename can't be deleted.

Now, on sanitize.php:

$string = pregreplace("/[^.a-zA-Z0-9]/", "", $string);

Proposed & successfully tested:

$string = pregreplace("/[^-.a-zA-Z0-9]/", "", $string);

I don't know if this can have any side effect on other places. If it has not, I can easy fix it :-)

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & versionMysql & PostgreSQL
Server OS (if known)GNU/Linux
Webserver software & version (if known)Apache2
PHP Version5.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

kadejo

kadejo

2009-08-14 09:30

reporter   ~09140

there are lots of places where sanitize_paranoid_string is used, maybe this hyphen deletion is proper for those cases, maybe is buggy too, as in deleting files under template editor.

I won't dare to fix that without your acknowledge, sincerelly.

Issue History

Date Modified Username Field Change
2009-08-14 09:26 kadejo New Issue
2009-08-14 09:26 kadejo Status new => assigned
2009-08-14 09:26 kadejo Assigned To => user372
2009-08-14 09:26 kadejo Database & DB-Version => Mysql & PostgreSQL
2009-08-14 09:26 kadejo Operating System (Server) => GNU/Linux
2009-08-14 09:26 kadejo Webserver => Apache2
2009-08-14 09:26 kadejo PHP Version => 5.2
2009-08-14 09:30 kadejo Note Added: 09140
2009-08-14 09:30 kadejo Assigned To user372 => c_schmitz
2009-08-14 09:30 kadejo Status assigned => feedback
2009-08-19 15:08 c_schmitz Status feedback => assigned
2009-08-19 18:37 c_schmitz Status assigned => resolved
2009-08-19 18:37 c_schmitz Fixed in Version => 1.85+
2009-08-19 18:37 c_schmitz Resolution open => fixed
2009-08-24 22:27 c_schmitz Status resolved => closed
2015-12-11 14:40 c_schmitz Category Templates => Theme editor