aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-07-25 01:38:28 +0200
committertcit <tcit@tcit.fr>2014-07-25 01:38:28 +0200
commitd49446ff98044bdaf19f06d72c94d513cbbabcec (patch)
treefc8f5cff8dc6d164d86ac6a082427be2bee920f8 /inc
parentdc59f164a94ce2ab9e3165aa0090acff8a352493 (diff)
downloadwallabag-d49446ff98044bdaf19f06d72c94d513cbbabcec.tar.gz
wallabag-d49446ff98044bdaf19f06d72c94d513cbbabcec.tar.zst
wallabag-d49446ff98044bdaf19f06d72c94d513cbbabcec.zip
bug with extension in the filename
Diffstat (limited to 'inc')
-rw-r--r--inc/poche/WallabagEBooks.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/WallabagEBooks.class.php b/inc/poche/WallabagEBooks.class.php
index a12befa8..5f42308e 100644
--- a/inc/poche/WallabagEBooks.class.php
+++ b/inc/poche/WallabagEBooks.class.php
@@ -185,7 +185,7 @@ class WallabagMobi extends WallabagEBooks
185 // we send file to kindle 185 // we send file to kindle
186 186
187 $char_in = array('/', '.', ',', ':', '|'); # we sanitize filename to avoid conflicts with special characters (for instance, / goes for a directory) 187 $char_in = array('/', '.', ',', ':', '|'); # we sanitize filename to avoid conflicts with special characters (for instance, / goes for a directory)
188 $mobiExportName = preg_replace('/\s+/', '-', str_replace($char_in, '-', $this->bookFileName . '.mobi')); 188 $mobiExportName = preg_replace('/\s+/', '-', str_replace($char_in, '-', $this->bookFileName)) . '.mobi';
189 189
190 $file = 'cache/' . $mobiExportName; 190 $file = 'cache/' . $mobiExportName;
191 $mobi->save($file); 191 $mobi->save($file);