]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/WallabagEBooks.class.php
set registration to false
[github/wallabag/wallabag.git] / inc / poche / WallabagEBooks.class.php
index d31939a1ba70fbdcd6b6a857f8d8b71ec6eb752c..558315719f336e50bc32b21a4a41bb5c137de328 100644 (file)
@@ -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');