Skip to content

Commit

Permalink
Realpath for deltree is compared in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
juanparati committed Dec 13, 2016
1 parent 4e3e39e commit d178187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static function exists($path, $scope = File::SCOPE_AUTO)
public static function deltree($directory, $recursive = true, $flag = File::EXCLUDE_BLOCK)
{

if (realpath($directory) == '/')
if (realpath($directory) === '/')
throw new Exception("Operation not allowed");

// Block files cannot be copied
Expand Down

0 comments on commit d178187

Please sign in to comment.