|
From: <be...@us...> - 2014-09-15 03:39:10
|
Revision: 12781
http://sourceforge.net/p/xoops/svn/12781
Author: beckmi
Date: 2014-09-15 03:39:05 +0000 (Mon, 15 Sep 2014)
Log Message:
-----------
allowing for "https" URL in YouTube links in Textsanitizer
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/textsanitizer/youtube/youtube.php
Modified: XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-09-14 10:06:34 UTC (rev 12780)
+++ XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-09-15 03:39:05 UTC (rev 12781)
@@ -8,6 +8,7 @@
- Fix issues when protector 'id_forceintval' preference is enabled, that manifests as an error when deleting private messages. (rgriffith)
- fix for Update setting Template import date to 0 (timgno/mamba)
- adding Adding language constants for Protector's Prefix Manager (slider84/mamba)
+- allowing for "https" URL in YouTube links in Textsanitizer (mamba)
===============================
2014-06-20: Version 2.5.7 Final (Patch)
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/textsanitizer/youtube/youtube.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/textsanitizer/youtube/youtube.php 2014-09-14 10:06:34 UTC (rev 12780)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/textsanitizer/youtube/youtube.php 2014-09-15 03:39:05 UTC (rev 12781)
@@ -88,7 +88,7 @@
*/
static function decode($url, $width, $height)
{
- if (!preg_match("/^http:\/\/(www\.)?youtube\.com\/watch\?v=(.*)/i", $url, $matches)) {
+ if (!preg_match("/^http[s]?:\/\/(www\.)?youtube\.com\/watch\?v=(.*)/i", $url, $matches)) {
trigger_error("Not matched: {$url} {$width} {$height}", E_USER_WARNING);
return "";
|