aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-23 16:58:53 -0500
committerJesús <heckyel@hyperbola.info>2019-05-23 16:58:53 -0500
commitb0e25ed6c2b41f9f946a36309649c25332afb939 (patch)
tree5459bd71b8b6cb7a39e056839a7ef1dc711e65f7
parentace3b9c7be4b0b5f035867d40fda0d0c86352518 (diff)
downloadytlibre-b0e25ed6c2b41f9f946a36309649c25332afb939.tar.lz
ytlibre-b0e25ed6c2b41f9f946a36309649c25332afb939.tar.xz
ytlibre-b0e25ed6c2b41f9f946a36309649c25332afb939.zip
fix 11 characters to videoID
-rw-r--r--tools/processor.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/processor.php b/tools/processor.php
index 6c42399..a615a76 100644
--- a/tools/processor.php
+++ b/tools/processor.php
@@ -8,7 +8,7 @@ if (empty($_GET['link'])){
$baselink = htmlspecialchars($_GET['link']);
$urlexists = url_exists( $baselink );
-if ($urlexists == true) {
+if ($urlexists === true) {
// Regex - filter URL id is match[5]
// Testing into → https://regexr.com/4ej96
@@ -16,7 +16,7 @@ if ($urlexists == true) {
preg_match($rx, $baselink, $match);
// Testing if id → 11 characters
- if (strlen($match[5]) < 12) {
+ if (strlen($match[5]) == 11) {
$video_id = $match[5];
} else {
header('Location: index.php');