All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
  Print view

bugfix in mkdir() inside atkfileattribute
Author Message
PostPosted: Tue Jul 09, 2013 12:24 pm 
Regular
User avatar
Offline

Joined: Tue Oct 30, 2012 9:07 am
Posts: 128
Location: Italy
I had a problem with the fileattribute with safe_mode=on and open_basedir= in effect.
I had to patch the file this way because is_dir() is not working in such configuration.
This is the patch against SVN TRUNK 7.0 release of ATK.

Also my old forum account still not working, i had to create a 3rd one :-(

Code:
diff -r atk-trunk/attributes/class.atkfileattribute.inc /opt/web/seeweb-RSYNC/var-www/myoffice/atk/attributes/class.atkfileattribute.inc
384a385
>        /* PATCHED BY AGX FOR open_basedir restrictions */
387a389
>         $oldpath = $path;
394,395c396,398
<         if(!is_dir($path) && !mkdir($path))
<           return false;
---
>         if(!@is_dir($path)) {
>                       @mkdir($path);
>               }
397c400
<
---
>         if (!is_dir($oldpath)) return false;

_________________
My best regards,

Antonio Gallo
Linux, PHP, Perl/Webmin Consultant
http://badpenguin.org
Join the ATK's Linkedin Group https://www.linkedin.com/groups/ATK-Framework-7446956


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group