1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

files_reader: fix not loading files with '+' in name (https://github.com/Yetangitu/owncloud-apps/issues/2), new dist file

This commit is contained in:
frankdelange 2014-12-16 09:15:23 +01:00
parent 9cf215dc16
commit b6ac51058d
5 changed files with 74 additions and 33 deletions

View file

@ -3,7 +3,7 @@
<id>files_reader</id>
<name>Reader (ebook reader)</name>
<description>Online ePub file reader</description>
<version>0.4.5</version>
<version>0.4.6</version>
<licence>LGPL</licence>
<author>Frank de Lange, (taken clues from Thomas Müller/files_pdfviewer, using slightly modified Futurepress/epub.js)</author>
<require>7.0</require>

View file

@ -11,7 +11,8 @@ $mime = "application/zip+epub";
// download link varies by sharing status, compose it here
$dllink = $share === ''
? OC_Helper::linkTo('files', 'ajax/download.php', array('dir' => urldecode($dir), 'files' => urldecode($file), 'share' => $share ))
// ? OC_Helper::linkTo('files', 'ajax/download.php', array('dir' => urldecode($dir), 'files' => urldecode($file), 'share' => $share ))
? OC_Helper::linkTo('files', 'ajax/download.php', array('dir' => $dir, 'files' => $file, 'share' => $share ))
: OC_Helper::linkToPublic('files') . '&t=' . rawurlencode($share) . '&download';
// needed for css/script inclusion