Passed
Push — master ( 35fe1d...092ff4 )
by Joas
17:23 queued 13s
created
apps/dav/lib/Connector/PublicAuth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,13 +114,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.