Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-06-26 00:06:24 +0300
committerOlivier Paroz <github@oparoz.com>2015-06-26 00:06:24 +0300
commit1b32faf94c023ecb43a05823b6dfa8d76cd9bf37 (patch)
treedbb766f0cc6edf275398513debb908689955b118 /middleware
parente24b327de645fe874e09afb0ba7007911fdd8352 (diff)
Use the compressed version of bigshot
Diffstat (limited to 'middleware')
-rw-r--r--middleware/envcheckmiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/envcheckmiddleware.php b/middleware/envcheckmiddleware.php
index 657d3d61..ba6f5d67 100644
--- a/middleware/envcheckmiddleware.php
+++ b/middleware/envcheckmiddleware.php
@@ -261,7 +261,7 @@ class EnvCheckMiddleware extends CheckMiddleware {
* @throws ServiceException
*/
private function authenticate($linkItem, $password) {
- if ($linkItem['share_type'] == Share::SHARE_TYPE_LINK) {
+ if ((int)$linkItem['share_type'] === Share::SHARE_TYPE_LINK) {
$this->checkPassword($linkItem, $password);
} else {
$this->logAndThrow(