X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2FWallabagEBooks.class.php;h=558315719f336e50bc32b21a4a41bb5c137de328;hb=6cb5e1c9f511996d52b45b459bb26047f0dead38;hp=d31939a1ba70fbdcd6b6a857f8d8b71ec6eb752c;hpb=1cedeb681f84b2c9b17f4f8b88d4fffabb15d6c8;p=github%2Fwallabag%2Fwallabag.git 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 } $mobi->setContentProvider($content); + // the browser inside Kindle Devices doesn't likes special caracters either, we limit to A-z/0-9 + $this->bookFileName = preg_replace('/[^A-Za-z0-9\-]/', '', $this->bookFileName); + // we offer file to download $mobi->download($this->bookFileName.'.mobi'); Tools::logm('Mobi file produced');