Anonymous | Login | 2024-12-22 05:35 MST |
Main | My View | View Issues | Change Log | Roadmap | Repositories |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000372 | ClearOS | app-flexshare - Flexshares | public | 2011-10-24 02:01 | 2015-05-04 14:38 | ||||
Reporter | taryck | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | suspended | ||||||
Platform | OS | OS Version | |||||||
Product Version | 5.2-SP1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000372: email upload directory problem with Regex | ||||||||
Description | As describe with more details in http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,13/func,view/id,31143/ [^] I'm using directory like Dir = users/me/2011-08 - archive/ With space and "-". This kind of directory seems to be supported as we can see in : $regex = "^Dir[[:space:]]*=[[:space:]]*([A-Za-z0-9\-\_\/\. ]+$)"; if (eregi($regex, $mymessage[$index]['Subject'], $match)) { For a reason I do not understand the "\-" that stand for "-" is not valid for eregi function. | ||||||||
Additional Information | To solve this issue i've made change on /var/webconfig/api/Flexshare.class.php I've changed : $regex = "^Dir[[:space:]]*=[[:space:]]*([A-Za-z0-9\-\_\/\. ]+$)"; if (eregi($regex, $mymessage[$index]['Subject'], $match)) { To this $regex = "^Dir[[:space:]]*=[[:space:]]*([A-Za-z0-9\_\/\. \-]+$)"; if (eregi($regex, $mymessage[$index]['Subject'], $match)) { And now it's working. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Issue History | |||
Date Modified | Username | Field | Change |
2011-10-24 02:01 | taryck | New Issue | |
2011-10-24 12:32 | user2 | Status | new => confirmed |
2011-10-24 15:10 | user2 | Severity | major => minor |
2015-05-04 14:38 | user2 | Status | confirmed => closed |
2015-05-04 14:38 | user2 | Resolution | open => suspended |