[Pkg-owncloud-commits] [php-sabredav] 42/75: Use lower-case `false` to make PHPCS happy
David Prévot
taffit at moszumanska.debian.org
Thu Feb 26 18:51:52 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 ed7a00da6a7429a6a5e0fa6b9d70dc0da322e5f0
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 987b9c0..add1b0f 100644
--- a/lib/DAV/Browser/Plugin.php
+++ b/lib/DAV/Browser/Plugin.php
@@ -465,7 +465,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