diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-02-13 19:15:31 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-02-13 19:15:31 +0100 |
commit | 0eae6d14b8858005919cc3069799f77008a81d29 (patch) | |
tree | 9c18566ddada5bf8e391a7fa96f27cfc71471f1b /inc/poche/WallabagEBooks.class.php | |
parent | 1fbef3bfb57b3f73e6817115f10b5876dd0e57ef (diff) | |
parent | dc6ec987585a1c51f678c404143e37b0d844d796 (diff) | |
download | wallabag-0eae6d14b8858005919cc3069799f77008a81d29.tar.gz wallabag-0eae6d14b8858005919cc3069799f77008a81d29.tar.zst wallabag-0eae6d14b8858005919cc3069799f77008a81d29.zip |
Merge branch 'dev' into register
Diffstat (limited to 'inc/poche/WallabagEBooks.class.php')
-rw-r--r-- | inc/poche/WallabagEBooks.class.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/poche/WallabagEBooks.class.php b/inc/poche/WallabagEBooks.class.php index d31939a1..55831571 100644 --- a/inc/poche/WallabagEBooks.class.php +++ b/inc/poche/WallabagEBooks.class.php | |||
@@ -202,6 +202,9 @@ class WallabagMobi extends WallabagEBooks | |||
202 | } | 202 | } |
203 | $mobi->setContentProvider($content); | 203 | $mobi->setContentProvider($content); |
204 | 204 | ||
205 | // the browser inside Kindle Devices doesn't likes special caracters either, we limit to A-z/0-9 | ||
206 | $this->bookFileName = preg_replace('/[^A-Za-z0-9\-]/', '', $this->bookFileName); | ||
207 | |||
205 | // we offer file to download | 208 | // we offer file to download |
206 | $mobi->download($this->bookFileName.'.mobi'); | 209 | $mobi->download($this->bookFileName.'.mobi'); |
207 | Tools::logm('Mobi file produced'); | 210 | Tools::logm('Mobi file produced'); |