commit 781d188409298a8394fb260885473d067cce491a parent 6e0efafe2451cf62d42dd32a318440e53616f8fb Author: dankert <devnull@localhost> Date: Thu, 17 Dec 2009 01:23:59 +0100 Inhalte von Links als Text-Datei anzeigen Diffstat:
actionClasses/WebdavAction.class.php | | | 17 | ++++++----------- |
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/actionClasses/WebdavAction.class.php b/actionClasses/WebdavAction.class.php @@ -360,19 +360,14 @@ class WebdavAction extends Action } elseif( $this->obj->isLink ) { - $this->httpStatus( '403 Forbidden' ); - return; $this->httpStatus( '200 OK' ); - header('Content-Type: text/html'); - echo '<html><head><title>OpenRat WEBDAV Access</title></head>'; - echo '<body>'; - echo '<h1>Link</h1>'; - echo '<pre>'; - echo 'No Content available'; - echo '</pre>'; - echo '</body>'; - echo '</html>'; + header('Content-Type: text/plain'); + + $link = new Link( $this->obj->objectid ); + $link->load(); + echo 'url: '.$link->url."\n"; + echo 'target-id: '.$link->linkedObjectId."\n"; } elseif( $this->obj->isFile ) {