htmlentities -> htmlspecialchars
This commit is contained in:
@@ -23,7 +23,7 @@ function do_login($remote_site,$username,$password){
|
||||
);
|
||||
//echo "try login...";
|
||||
$data=curl_post_urlencoded($remote_site.'/userloginex.php?action=login&cid=0¬ice=0',$form);
|
||||
//echo htmlentities($remote_site.'/login');
|
||||
//echo htmlspecialchars($remote_site.'/login');
|
||||
if(str_contains($data,"No such user or wrong password.")) return false;
|
||||
else return true;
|
||||
}
|
||||
@@ -222,7 +222,7 @@ if(isset($_POST[$OJ_NAME.'_refer'])){
|
||||
do_submit($remote_site,$remote_user);
|
||||
}
|
||||
|
||||
//echo (htmlentities(curl_get($remote_site."/login0.php")));
|
||||
//echo (htmlspecialchars(curl_get($remote_site."/login0.php")));
|
||||
if (!is_login($remote_site)){
|
||||
var_dump(do_login($remote_site,$remote_user,$remote_pass));
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user