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:
parent
9cf215dc16
commit
b6ac51058d
5 changed files with 74 additions and 33 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue