mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
add dailymotion videos, issue #708
This commit is contained in:
parent
009669360d
commit
0b9bb8cb78
12
inc/3rdparty/site_config/custom/dailymotion.com.txt
vendored
Executable file
12
inc/3rdparty/site_config/custom/dailymotion.com.txt
vendored
Executable file
@ -0,0 +1,12 @@
|
||||
title: //title
|
||||
body: //iframe
|
||||
|
||||
replace_string(<![CDATA[): _
|
||||
replace_string(]]>): _
|
||||
|
||||
single_page_link: //link[@type='application/xml+oembed']
|
||||
|
||||
prune: no
|
||||
tidy: no
|
||||
|
||||
http://www.dailymotion.com/video/x1vk5oh_before-they-were-on-game-of-thrones_people
|
@ -1145,7 +1145,8 @@ class Poche
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('Cache.SerializerPath', CACHE);
|
||||
$config->set('HTML.SafeIframe', true);
|
||||
$config->set('URI.SafeIframeRegexp', '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%'); //allow YouTube and Vimeo$purifier = new HTMLPurifier($config);
|
||||
//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/)%');
|
||||
|
||||
return new HTMLPurifier($config);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user