• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: [fixed]File Picker can't access a folder with a "-" in name
PostPosted: Fri Apr 07, 2017 8:38 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Apr 02, 2017 10:00 am
Posts: 27
To repeat the error:
Admin - Content Manager - edit any content page - click on the Insert/edit image
- create a folder named "AC-DC", and then try to enter into.
You'll get this error:
Code:
Fatal error: Uncaught exception 'LogicException' with message 'Invalid path_a passed to FilePicker\PathAssistant::to_relative_sub: ' in /var/www/cms2/modules/FilePicker/lib/class.PathAssistant.php:40 Stack trace: #0 /var/www/cms2/modules/FilePicker/lib/class.PathAssistant.php(71): FilePicker\PathAssistant->to_relative_sub('/var/www/cms2/u...', '/var/www/cms2/u...') #1 /var/www/cms2/modules/FilePicker/action.filepicker.php(64): FilePicker\PathAssistant->to_relative('/var/www/cms2/u...') #2 /var/www/cms2/lib/classes/class.CMSModule.php(1415): include('/var/www/cms2/m...') #3 /var/www/cms2/lib/classes/class.CMSModule.php(1489): CMSModule->DoAction('filepicker', 'm1_', Array, '') #4 /var/www/cms2/admin/moduleinterface.php(110): CMSModule->DoActionBase('filepicker', 'm1_', Array, '', Object(Smarty_CMS)) #5 {main} thrown in /var/www/cms2/modules/FilePicker/lib/class.PathAssistant.php on line 40


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: File Picker can't access a folder with a "-" in name
PostPosted: Sat Apr 08, 2017 9:42 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7277
Location: The Netherlands
Confirmed in SVN rev. 11211

Quick test:
Line 38 returns D:\www\trunk\uploads instead of D:\www\trunk\uploads\foo-bar
Code:
$path_a = realpath( $path_a ); echo $path_a;

Works for foobar and foo_bar, but not foo-bar

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [confmd]File Picker can't access a folder with a "-" in
PostPosted: Sat Apr 08, 2017 6:09 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 7837
Location: Fernie British Columbia, Canada
Fixed in svn. thanks

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [fixed]File Picker can't access a folder with a "-" in n
PostPosted: Fri Apr 21, 2017 1:47 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7277
Location: The Netherlands
Confirmed fixed

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return! [ Click here ]



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting