mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
Fixing bugs found by static analysis
This commit is contained in:
@@ -114,7 +114,7 @@ class Af_Unburn extends Plugin {
|
||||
preg_match("/(Location:|URI:)[^(\n)]*/", $header, $matches);
|
||||
$url = trim(str_replace($matches[1],"",$matches[0]));
|
||||
$url_parsed = parse_url($url);
|
||||
return (isset($url_parsed))? geturl($url, $referer):'';
|
||||
return (isset($url_parsed))? geturl($url):'';
|
||||
}
|
||||
$oline='';
|
||||
foreach($status as $key=>$eline){$oline.='['.$key.']'.$eline.' ';}
|
||||
|
||||
@@ -51,7 +51,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
|
||||
$return = urlencode($_REQUEST["return"]);
|
||||
?><html>
|
||||
<head><title>Tiny Tiny RSS</title></head>
|
||||
<?php echo stylesheet_tag("utility.css") ?>
|
||||
<?php stylesheet_tag("utility.css") ?>
|
||||
<body class="otp"><div class="content">
|
||||
<form action="public.php?return=<?php echo $return ?>"
|
||||
method="POST" class="otpform">
|
||||
|
||||
@@ -45,7 +45,7 @@ class Auth_Remote extends Plugin implements IAuthModule {
|
||||
# if (!$try_login) $try_login = "test_qqq";
|
||||
|
||||
if ($try_login) {
|
||||
$user_id = $this->base->auto_create_user($try_login);
|
||||
$user_id = $this->base->auto_create_user($try_login, $password);
|
||||
|
||||
if ($user_id) {
|
||||
$_SESSION["fake_login"] = $try_login;
|
||||
|
||||
Reference in New Issue
Block a user