]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cast share id to string (#25402) 468/head
authorVincent Petry <pvince81@owncloud.com>
Mon, 11 Jul 2016 08:27:47 +0000 (10:27 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 20 Jul 2016 13:10:10 +0000 (15:10 +0200)
apps/dav/lib/Connector/PublicAuth.php

index 9b386c7609d0e04981bec2919d7c12eb33ca8ed1..38d91f086c79e756eafc89625ac9c81e36799c84 100644 (file)
@@ -98,7 +98,7 @@ class PublicAuth extends AbstractBasic {
                                if ($this->shareManager->checkPassword($share, $password)) {
                                        return true;
                                } else if ($this->session->exists('public_link_authenticated')
-                                       && $this->session->get('public_link_authenticated') === $share->getId()) {
+                                       && $this->session->get('public_link_authenticated') === (string)$share->getId()) {
                                        return true;
                                } else {
                                        if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) {