X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2FPoche.class.php;h=09a9f5ff85276423a29b505312d2f1cec66ead8a;hb=refs%2Fpull%2F722%2Fhead;hp=b0c0adf8bb9d41e03311f2936f0ae67f109aa88c;hpb=cbc75befb5bdf368bec15f47413bd7669273a181;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index b0c0adf8..09a9f5ff 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -1083,7 +1083,7 @@ class Poche $config = $this->store->getConfigUser($user_id); if ($config == null) { - die(_( sprintf('User with this id (%d) does not exist.', $user_id) )); + die(sprintf(_('User with this id (%d) does not exist.'), $user_id)); } if (!in_array($type, $allowed_types) || $token != $config['token']) { @@ -1144,6 +1144,7 @@ class Poche $config = HTMLPurifier_Config::createDefault(); $config->set('Cache.SerializerPath', CACHE); $config->set('HTML.SafeIframe', true); + //allow YouTube, Vimeo and dailymotion videos $config->set('URI.SafeIframeRegexp', '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/|www\.dailymotion\.com/embed/video/)%'); @@ -1206,9 +1207,8 @@ class Poche $log = new Logger("wallabag", TRUE); $fileDir = CACHE; - - - $book = new EPub(EPub::BOOK_VERSION_EPUB3); + + $book = new EPub(EPub::BOOK_VERSION_EPUB3, DEBUG_POCHE); $log->logLine("new EPub()"); $log->logLine("EPub class version: " . EPub::VERSION); $log->logLine("EPub Req. Zip version: " . EPub::REQ_ZIP_VERSION);