diff options
author | Jesús <heckyel@hyperbola.info> | 2019-05-23 16:58:53 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-05-23 16:58:53 -0500 |
commit | b0e25ed6c2b41f9f946a36309649c25332afb939 (patch) | |
tree | 5459bd71b8b6cb7a39e056839a7ef1dc711e65f7 | |
parent | ace3b9c7be4b0b5f035867d40fda0d0c86352518 (diff) | |
download | ytlibre-b0e25ed6c2b41f9f946a36309649c25332afb939.tar.lz ytlibre-b0e25ed6c2b41f9f946a36309649c25332afb939.tar.xz ytlibre-b0e25ed6c2b41f9f946a36309649c25332afb939.zip |
fix 11 characters to videoID
-rw-r--r-- | tools/processor.php | 4 |
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'); |