Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117757032
D1978.1775206822.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D1978.1775206822.diff
View Options
diff --git a/lib/ext/Syncroton/Server.php b/lib/ext/Syncroton/Server.php
--- a/lib/ext/Syncroton/Server.php
+++ b/lib/ext/Syncroton/Server.php
@@ -67,6 +67,13 @@
break;
case 'POST':
+ // All requests except OPTIONS must be authenticated
+ if (empty($this->_userId)) {
+ header('WWW-Authenticate: Basic realm="' . $this->app_name .'"');
+ header('HTTP/1.1 401 Unauthorized');
+ exit;
+ }
+
$this->_handlePost();
break;
diff --git a/lib/kolab_sync.php b/lib/kolab_sync.php
--- a/lib/kolab_sync.php
+++ b/lib/kolab_sync.php
@@ -133,12 +133,6 @@
$userid = $this->authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);
}
- if (empty($userid)) {
- header('WWW-Authenticate: Basic realm="' . $this->app_name .'"');
- header('HTTP/1.1 401 Unauthorized');
- exit;
- }
-
$this->plugins->exec_hook('ready', array('task' => 'syncroton'));
// Set log directory per-user
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 9:00 AM (5 h, 43 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823378
Default Alt Text
D1978.1775206822.diff (1 KB)
Attached To
Mode
D1978: Allow unauthenticated OPTIONS requests
Attached
Detach File
Event Timeline