From d3d167affb7f2ac7708e8fe54658df594b6f672c Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 8 Jul 2015 16:26:58 +0200 Subject: SECURITY: XSS fix for youtube.js/metacafe embed --- inc/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/config.php') diff --git a/inc/config.php b/inc/config.php index 32308bd4..75506645 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1022,7 +1022,7 @@ '' ), array( - '/^https?:\/\/(\w+\.)?metacafe\.com\/watch\/(\d+)\/([a-zA-Z0-9_\-.]+)\/(\?.+)?$/i', + '/^https?:\/\/(\w+\.)?metacafe\.com\/watch\/(\d+)\/([a-zA-Z0-9_\-.]+)\/(\?[^\'"<>]+)?$/i', '
' ), array( @@ -1665,6 +1665,6 @@ // Youtube.js embed HTML code $config['youtube_js_html'] = '
'. - ''. + ''. ''. '
'; -- cgit v1.3 From 219c1987a90d828b3e0c38b66509617ad78b91ab Mon Sep 17 00:00:00 2001 From: 27chan Date: Mon, 10 Aug 2015 22:25:09 -0300 Subject: Add extension mp4 --- inc/config.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/config.php') diff --git a/inc/config.php b/inc/config.php index 75506645..69b4bd3a 100644 --- a/inc/config.php +++ b/inc/config.php @@ -754,6 +754,7 @@ $config['file_icons']['default'] = 'file.png'; $config['file_icons']['zip'] = 'zip.png'; $config['file_icons']['webm'] = 'video.png'; + $config['file_icons']['mp4'] = 'video.png'; // Example: Custom thumbnail for certain file extension. // $config['file_icons']['extension'] = 'some_file.png'; -- cgit v1.3