[Pkg-owncloud-commits] [php-sabredav] 49/75: Use lower-case `false` to make PHPCS happy

David Prévot taffit at moszumanska.debian.org
Thu Feb 26 18:51:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 3a55560706ad9c830f54696de172df29f7a6b25a
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Mon Feb 23 12:59:09 2015 +0100

    Use lower-case `false` to make PHPCS happy
---
 lib/DAV/Browser/Plugin.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/DAV/Browser/Plugin.php b/lib/DAV/Browser/Plugin.php
index dcc1437..ec607af 100644
--- a/lib/DAV/Browser/Plugin.php
+++ b/lib/DAV/Browser/Plugin.php
@@ -401,7 +401,7 @@ HTML;
 
         // Making sure people aren't trying to escape from the base path.
         $path = str_replace('\\', '/', $path);
-        if (strpos($path, '/../') !== FALSE || strrchr($path, '/') === '/..') {
+        if (strpos($path, '/../') !== false || strrchr($path, '/') === '/..') {
             throw new DAV\Exception\NotFound('Path does not exist, or escaping from the base path was detected');
         }
         if (strpos(realpath($path), realpath($assetDir)) === 0 && file_exists($path)) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list