module installation from xml: mkdir does not like trailing slashes...

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
titob
New Member
New Member
Posts: 2
Joined: Wed Nov 05, 2008 3:47 pm

module installation from xml: mkdir does not like trailing slashes...

Post by titob »

...  when safe_mode is enabled, see also: http://bugs.php.net/bug.php?id=42739

In my opinion, that's why many people (including myself) can't install new modules from xml files, neither uploading from their browser nor downloading from the repository (it's not a permission issue, my permissions are "777")

The attached patch removes all trailing slashes from $filename when $moduledetails['isdir']

I've tested it in a pre-production environment, module installation works fine now.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

Post Reply

Return to “Developers Discussion”