mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 09:31:04 +00:00
bug with extension in the filename
This commit is contained in:
parent
dc59f164a9
commit
d49446ff98
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class WallabagMobi extends WallabagEBooks
|
|||
// we send file to kindle
|
||||
|
||||
$char_in = array('/', '.', ',', ':', '|'); # we sanitize filename to avoid conflicts with special characters (for instance, / goes for a directory)
|
||||
$mobiExportName = preg_replace('/\s+/', '-', str_replace($char_in, '-', $this->bookFileName . '.mobi'));
|
||||
$mobiExportName = preg_replace('/\s+/', '-', str_replace($char_in, '-', $this->bookFileName)) . '.mobi';
|
||||
|
||||
$file = 'cache/' . $mobiExportName;
|
||||
$mobi->save($file);
|
||||
|
|
Loading…
Reference in a new issue