SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000372ClearOSapp-flexshare - Flexsharespublic2011-10-24 02:012015-05-04 14:38
Reportertaryck 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version5.2-SP1 
Target VersionFixed in Version 
Summary0000372: email upload directory problem with Regex
DescriptionAs 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 InformationTo 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- 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

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7