aboutsummaryrefslogtreecommitdiffstats
path: root/tools/processor.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/processor.php')
-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');