|
@@ -103,13 +103,13 @@ |
|
|
block discarded – undo |
|
103
|
103
|
if ($this->shareManager->checkPassword($share, $password)) { |
|
104
|
104
|
return true; |
|
105
|
105
|
} elseif ($this->session->exists('public_link_authenticated') |
|
106
|
|
- && $this->session->get('public_link_authenticated') === (string)$share->getId()) { |
|
|
106
|
+ && $this->session->get('public_link_authenticated') === (string) $share->getId()) { |
|
107
|
107
|
return true; |
|
108
|
108
|
} else { |
|
109
|
109
|
if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) { |
|
110
|
110
|
// do not re-authenticate over ajax, use dummy auth name to prevent browser popup |
|
111
|
111
|
http_response_code(401); |
|
112
|
|
- header('WWW-Authenticate: DummyBasic realm="' . $this->realm . '"'); |
|
|
112
|
+ header('WWW-Authenticate: DummyBasic realm="'.$this->realm.'"'); |
|
113
|
113
|
throw new \Sabre\DAV\Exception\NotAuthenticated('Cannot authenticate over ajax calls'); |
|
114
|
114
|
} |
|
115
|
115
|
return false; |
Please login to merge, or discard this patch.