Skip to content

Commit b29b2fe

Browse files
author
Daniel Neto
committed
Update
1 parent f7f4593 commit b29b2fe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/.project
44
/node_modules/
55
install/importVimeo.php
6+
test.php

objects/functions.php

+3
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,7 @@ function fixURLQuery($query){
16251625
}
16261626

16271627
function isYouTubeUrl($url) {
1628+
$url = str_replace("'", '', $url);
16281629
// List of possible YouTube domains
16291630
$youtubeDomains = [
16301631
'youtube.com',
@@ -1643,6 +1644,8 @@ function isYouTubeUrl($url) {
16431644
// Check if the host is in the list of YouTube domains
16441645
if ($parsedUrl !== false && in_array($parsedUrl, $youtubeDomains)) {
16451646
return true;
1647+
}else{
1648+
16461649
}
16471650

16481651
return false;

0 commit comments

Comments
 (0)