aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-06-07 15:53:39 +0200
committertcit <tcit@tcit.fr>2014-06-07 15:53:39 +0200
commitec15d0a784a84e07b284c76e71fd8496e00559d5 (patch)
tree66830fea1e3a846418a9cce0ad667477f7acea32 /inc/poche/Poche.class.php
parent18209292a4f0ac0ac01795cd5e4cd9f2b449dded (diff)
downloadwallabag-ec15d0a784a84e07b284c76e71fd8496e00559d5.tar.gz
wallabag-ec15d0a784a84e07b284c76e71fd8496e00559d5.tar.zst
wallabag-ec15d0a784a84e07b284c76e71fd8496e00559d5.zip
do not debug inside an epub
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-xinc/poche/Poche.class.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 1b69cd61..4139c4f4 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -1142,11 +1142,11 @@ class Poche
1142 * return new purifier object with actual config 1142 * return new purifier object with actual config
1143 */ 1143 */
1144 protected function getPurifier() { 1144 protected function getPurifier() {
1145 $config = HTMLPurifier_Config::createDefault(); 1145 $config = HTMLPurifier_Config::createDefault();
1146 $config->set('Cache.SerializerPath', CACHE); 1146 $config->set('Cache.SerializerPath', CACHE);
1147 $config->set('HTML.SafeIframe', true); 1147 $config->set('HTML.SafeIframe', true);
1148 $config->set('URI.SafeIframeRegexp', '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%'); //allow YouTube and Vimeo$purifier = new HTMLPurifier($config); 1148 $config->set('URI.SafeIframeRegexp', '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%'); //allow YouTube and Vimeo$purifier = new HTMLPurifier($config);
1149 1149
1150 return new HTMLPurifier($config); 1150 return new HTMLPurifier($config);
1151 } 1151 }
1152 1152
@@ -1208,7 +1208,7 @@ class Poche
1208 $fileDir = CACHE; 1208 $fileDir = CACHE;
1209 1209
1210 1210
1211 $book = new EPub(EPub::BOOK_VERSION_EPUB3); 1211 $book = new EPub(EPub::BOOK_VERSION_EPUB3, DEBUG_POCHE);
1212 $log->logLine("new EPub()"); 1212 $log->logLine("new EPub()");
1213 $log->logLine("EPub class version: " . EPub::VERSION); 1213 $log->logLine("EPub class version: " . EPub::VERSION);
1214 $log->logLine("EPub Req. Zip version: " . EPub::REQ_ZIP_VERSION); 1214 $log->logLine("EPub Req. Zip version: " . EPub::REQ_ZIP_VERSION);