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

files_reader: missing $title parameter in template/reader.php caused warnings in log, fixed.

This commit is contained in:
frankdelange 2017-02-02 00:02:09 +01:00
parent 570ac4a441
commit c2227acea3
3 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,13 @@
## Unreleased
### Added
- Reader now supports CBR/CBZ ('comics') files
- Book position is saved on server and restored on next invocation
- Framework to support more file format renderers
## 0.8.3 - 2017-02-01
### Fixed
- missing $title parameter in template/reader.php caused warnings in log, fixed
## 0.8.2 - 2017-01-10
### Fixed
- Nextcloud-port broke compatibility with Owncloud due to OC not supporting CSPv3, workaround implemented

View file

@ -12,7 +12,7 @@
Also in Settings you'll find the option to use ignore any internal formatting in the book by forcing a given font style and size.
</description>
<version>0.8.2</version>
<version>0.8.3</version>
<licence>AGPL</licence>
<author>Frank de Lange</author>
<documentation>

View file

@ -4,6 +4,7 @@
$urlGenerator = $_['urlGenerator'];
$version = \OCP\App::getAppVersion('files_reader');
$dllink = isset($_GET['file']) ? $_GET['file'] : '';
$title = htmlentities(basename($dllink));
/* Owncloud currently does not implement CSPv3, remove this test when it does */
$nonce = class_exists('\OC\Security\CSP\ContentSecurityPolicyNonceManager')
@ -18,7 +19,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<base href="<?php p($urlGenerator->linkTo('files_reader',''));?>">
<title>
<?php p($_['title']);?>
<?php p($title);?>
</title>
<link rel="shortcut icon" href="img/book.png">
<link rel="stylesheet" href="css/normalize.css">