diff --git a/dist/files_reader-1.0.1.tar.gz b/dist/files_reader-1.0.1.tar.gz new file mode 100644 index 0000000..8930d14 Binary files /dev/null and b/dist/files_reader-1.0.1.tar.gz differ diff --git a/dist/files_reader-1.0.2.tar.gz b/dist/files_reader-1.0.2.tar.gz new file mode 100644 index 0000000..870aecc Binary files /dev/null and b/dist/files_reader-1.0.2.tar.gz differ diff --git a/dist/files_reader-1.0.3.tar.gz b/dist/files_reader-1.0.3.tar.gz new file mode 100644 index 0000000..679551e Binary files /dev/null and b/dist/files_reader-1.0.3.tar.gz differ diff --git a/dist/files_reader-1.0.4.tar.gz b/dist/files_reader-1.0.4.tar.gz new file mode 100644 index 0000000..a56adb5 Binary files /dev/null and b/dist/files_reader-1.0.4.tar.gz differ diff --git a/files_reader/CHANGELOG.md b/files_reader/CHANGELOG.md index 347a3c6..8eb34e1 100644 --- a/files_reader/CHANGELOG.md +++ b/files_reader/CHANGELOG.md @@ -10,6 +10,25 @@ - new version bitjs archive tools, fixes compatibility problems with some CBR files - increased maximum supported version for OC and NC +## 1.0.4 - 2017-04-09 +### Fixed + - #43, remove table aliases in hooks to avoid being bit by querybuilder/doctrine/MySQL incompatibility/idiosyncracy + - #39, #41 and #42, NOTE: if you're on MySQL or MariaDB you might need to enable 4-byte support if this has not been done yet, otherwise you'll get a '1071 Specified key was too long' error on install. More information on this issue - which also occurs when trying to use Emoji characters in a NC/OC installation on a MySQL or MariaDB database - can be found here: https://docs.nextcloud.com/server/11/admin_manual/maintenance/mysql_4byte_support.html + +## 1.0.3 - 2017-03-29 +### Fixed + - #40, detect shared file OR folder and (try to) get fileId for such when applicable + +## 1.0.2 - 2017-03-25 +### Fixed + - #37, use getAppManager()->isInstalled('files_opds') instead of class_exists to avoid log spam + +### Changed + - new version bitjs unarchiver, increases compatibility with CBR files (at the cost of some speed) + - move function declarations in js/ready.js down one block level so browsers which do not support + ES6 (e.g. Palemoon) can find them. Unfortunately the above new version of bitjs uses another ES6 + feature (classes) which Palemoon does not support so this change may be moot... + ## 1.0.1 - 2017-03-19 ### Fixed - #35: Internal Server Error: fixed path resolution so app works when NC/OC hosted in subdirectory diff --git a/files_reader/js/ready.js b/files_reader/js/ready.js index 1efb08e..721c1df 100644 --- a/files_reader/js/ready.js +++ b/files_reader/js/ready.js @@ -121,7 +121,7 @@ document.onreadystatechange = function () { /* device-specific boilerplate */ - // IE < 11 + // IE < 11 if (navigator.userAgent.indexOf("MSIE") != -1) { EPUBJS.Hooks.register("beforeChapterDisplay").wgxpath = function(callback, renderer){ wgxpath.install(renderer.render.window); diff --git a/files_reader/lib/Controller/PageController.php b/files_reader/lib/Controller/PageController.php index e1b8075..3306292 100644 --- a/files_reader/lib/Controller/PageController.php +++ b/files_reader/lib/Controller/PageController.php @@ -158,7 +158,7 @@ class PageController extends Controller { } else { $filePath = $path; $fileId = $this->rootFolder->getUserFolder($this->userId) - ->get(explode("/", rawurldecode($this->request->get['file']),4)[3]) + ->get(preg_replace("/.*\/remote.php\/webdav(.*)/", "$1", rawurldecode($this->request->get['file']))) ->getFileInfo() ->getId(); } diff --git a/files_reader/templates/cbreader.php b/files_reader/templates/cbreader.php index c3c27ff..0a2c124 100644 --- a/files_reader/templates/cbreader.php +++ b/files_reader/templates/cbreader.php @@ -13,7 +13,7 @@ $metadata = $_['metadata']; $annotations = $_['annotations']; $title = htmlentities(basename($dllink)); - $revision = '0046'; + $revision = '0047'; $version = \OCP\App::getAppVersion('files_reader') . '.' . $revision; /* Mobile safari, the new IE6 */