Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117811695
D93.1775278181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
558 B
Referenced Files
None
Subscribers
None
D93.1775278181.diff
View Options
diff --git a/public_html/index.php b/public_html/index.php
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -150,7 +150,13 @@
}
// register some plugins
-$server->addPlugin(new \Sabre\DAV\Auth\Plugin($auth_backend, 'KolabDAV'));
+$realm='KolabDAV';
+$u=urldecode($_SERVER['REQUEST_URI']);
+preg_match('/[^\/]+@[^\/]+/', $u, $found);
+if (count($found) > 0) {
+ $realm=$realm.' '.$found[0];
+}
+$server->addPlugin(new \Sabre\DAV\Auth\Plugin($auth_backend, $realm));
$server->addPlugin(new \Sabre\DAVACL\Plugin());
if ($services['CALDAV']) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 4:49 AM (12 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827583
Default Alt Text
D93.1775278181.diff (558 B)
Attached To
Mode
D93: Support multiple Accounts on one server by adding email address to realm
Attached
Detach File
Event Timeline