]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix for spaces in .mobi filenames
authorThomas Citharel <tcit@tcit.fr>
Sun, 25 Jan 2015 23:16:14 +0000 (00:16 +0100)
committerThomas Citharel <tcit@tcit.fr>
Sun, 25 Jan 2015 23:16:14 +0000 (00:16 +0100)
inc/poche/WallabagEBooks.class.php

index d31939a1ba70fbdcd6b6a857f8d8b71ec6eb752c..afcf4dbf530d0f0f9284ef7228282af9b054f0a9 100644 (file)
@@ -202,6 +202,9 @@ class WallabagMobi extends WallabagEBooks
         }
         $mobi->setContentProvider($content);
 
+        // we strip spaces because the browser inside Kindle Devices doesn't likes spaces
+        $this->bookFileName = str_replace(' ', '_', $this->bookFileName);
+
         // we offer file to download
         $mobi->download($this->bookFileName.'.mobi');
         Tools::logm('Mobi file produced');