aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/WallabagEBooks.class.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-02-13 17:14:08 +0100
committerThomas Citharel <tcit@tcit.fr>2015-02-13 17:14:08 +0100
commit57068585c0a1164f1ae7ae399f3d5a68a4e9d46d (patch)
tree479969a1a9888c34285e0f84a8186561ebe980e7 /inc/poche/WallabagEBooks.class.php
parent1be071f9f0fba7c93f114a886ff19199955a3f02 (diff)
parentaf13787e74ea45d7edc1005810f15a8baa428a77 (diff)
downloadwallabag-57068585c0a1164f1ae7ae399f3d5a68a4e9d46d.tar.gz
wallabag-57068585c0a1164f1ae7ae399f3d5a68a4e9d46d.tar.zst
wallabag-57068585c0a1164f1ae7ae399f3d5a68a4e9d46d.zip
Merge branch 'dev' into sendmailatregistration
Diffstat (limited to 'inc/poche/WallabagEBooks.class.php')
-rw-r--r--inc/poche/WallabagEBooks.class.php3
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');