X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2FpochePictures.php;h=a11340f8290dfef58465e49c045508474b18a6ab;hb=18209292a4f0ac0ac01795cd5e4cd9f2b449dded;hp=4e4a0b08561eed78c8aecb81b459696842593501;hpb=01c0e050ad8eca54f115dfa21db99e4f61ab7ca7;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/pochePictures.php b/inc/poche/pochePictures.php index 4e4a0b08..a11340f8 100644 --- a/inc/poche/pochePictures.php +++ b/inc/poche/pochePictures.php @@ -1,9 +1,9 @@ + * @category wallabag + * @author Nicolas Lœuillet * @copyright 2013 * @license http://www.wtfpl.net/ see COPYING file */ @@ -68,6 +68,7 @@ function get_absolute_link($relative_link, $url) { function download_pictures($absolute_path, $fullpath) { $rawdata = Tools::getFile($absolute_path); + $fullpath = urldecode($fullpath); if(file_exists($fullpath)) { unlink($fullpath); @@ -84,12 +85,12 @@ function create_assets_directory($id) { $assets_path = ABS_PATH; if(!is_dir($assets_path)) { - mkdir($assets_path, 0705); + mkdir($assets_path, 0715); } $article_directory = $assets_path . $id; if(!is_dir($article_directory)) { - mkdir($article_directory, 0705); + mkdir($article_directory, 0715); } return $article_directory; @@ -107,4 +108,4 @@ function remove_directory($directory) } return rmdir($directory); } -} \ No newline at end of file +}