From 7b38c3571e89ea3880d7d95bd41c72538ab9fafa Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 25 Apr 2016 14:30:12 +0200 Subject: [PATCH] Made dir handling private to prevent abuse h5p/h5p-moodle-plugin#48 HFJ-1845 --- h5p-default-storage.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index 9f11f1c..1c564ad 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -297,13 +297,10 @@ class H5PDefaultStorage implements \H5PFileStorage { * Recursive function that makes sure the specified directory exists and * is writable. * - * TODO: Will be made private when the editor file handling is done by this - * class! - * * @param string $path * @return bool */ - public static function dirReady($path) { + private static function dirReady($path) { if (!file_exists($path)) { $parent = preg_replace("/\/[^\/]+\/?$/", '', $path); if (!self::dirReady($parent)) {