From 8534373f2fea5268112fb7dee0faa2caf1106d05 Mon Sep 17 00:00:00 2001
From: Florian Hülsmann <fh@cbix.de>
Date: Mon, 7 May 2012 11:15:24 +0200
Subject: better invalid webfinger URI handling

---
 apps/remoteStorage/appinfo/webfinger.php | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'apps/remoteStorage')

diff --git a/apps/remoteStorage/appinfo/webfinger.php b/apps/remoteStorage/appinfo/webfinger.php
index 7c0ab846057..6403d3a6916 100644
--- a/apps/remoteStorage/appinfo/webfinger.php
+++ b/apps/remoteStorage/appinfo/webfinger.php
@@ -1,6 +1,8 @@
+<?php if(OC_User::userExists(WF_USER)) { ?>
     <Link
         rel="remoteStorage"
         template="<?php echo WF_BASEURL; ?>/apps/remoteStorage/WebDAV.php/<?php echo WF_USER; ?>/remoteStorage/{category}/"
         api="WebDAV"
         auth="<?php echo WF_BASEURL; ?>/apps/remoteStorage/auth.php/<?php echo WF_USER; ?>">
     </Link>
+<?php } ?>
-- 
cgit v1.2.3