@@ -114,13 +114,13 @@ |
||
114 | 114 | if ($this->shareManager->checkPassword($share, $password)) { |
115 | 115 | return true; |
116 | 116 | } elseif ($this->session->exists('public_link_authenticated') |
117 | - && $this->session->get('public_link_authenticated') === (string)$share->getId()) { |
|
117 | + && $this->session->get('public_link_authenticated') === (string) $share->getId()) { |
|
118 | 118 | return true; |
119 | 119 | } else { |
120 | 120 | if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) { |
121 | 121 | // do not re-authenticate over ajax, use dummy auth name to prevent browser popup |
122 | 122 | http_response_code(401); |
123 | - header('WWW-Authenticate: DummyBasic realm="' . $this->realm . '"'); |
|
123 | + header('WWW-Authenticate: DummyBasic realm="'.$this->realm.'"'); |
|
124 | 124 | throw new \Sabre\DAV\Exception\NotAuthenticated('Cannot authenticate over ajax calls'); |
125 | 125 | } |
126 | 126 |