@@ -77,10 +77,10 @@ public function getStart() {
77
77
return true ;
78
78
}
79
79
80
- $ whitelistedFiles = array ('user.php ' , 'status.php ' , 'canWatchVideo.json.php ' );
80
+ $ whitelistedFiles = array ('user.php ' , 'status.php ' , 'canWatchVideo.json.php ' , ' /login ' , ' /status ' );
81
81
$ blacklistedFiles = array ('videosAndroid.json.php ' );
82
82
$ baseName = basename ($ _SERVER ["SCRIPT_FILENAME " ]);
83
- if (in_array ($ baseName , $ whitelistedFiles )) {
83
+ if (in_array ($ baseName , $ whitelistedFiles ) || in_array ( $ _SERVER [ ' REQUEST_URI ' ], $ whitelistedFiles ) ) {
84
84
return true ;
85
85
}
86
86
@@ -115,7 +115,7 @@ public function getStart() {
115
115
}
116
116
}
117
117
118
- if ($ isBot && $ _SERVER [ ' REQUEST_URI ' ] !== ' /login ' && strpos ($ _SERVER ['REQUEST_URI ' ], 'youPHPTubeEncoder ' ) === false ){
118
+ if ($ isBot && strpos ($ _SERVER ['REQUEST_URI ' ], 'youPHPTubeEncoder ' ) === false ){
119
119
if (empty ($ _SERVER ['HTTP_USER_AGENT ' ])){
120
120
$ _SERVER ['HTTP_USER_AGENT ' ] = "" ;
121
121
}
@@ -130,7 +130,7 @@ public function getStart() {
130
130
}
131
131
132
132
private function isBlacklisted (){
133
- $ blacklistedFiles = array ('videosAndroid.json.php ' , ' status ' );
133
+ $ blacklistedFiles = array ('videosAndroid.json.php ' );
134
134
$ baseName = basename ($ _SERVER ["SCRIPT_FILENAME " ]);
135
135
return in_array ($ baseName , $ blacklistedFiles );
136
136
}
0 commit comments