mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:25:55 +00:00
Prevent target='_blank' vulnerability on dynamic link
This commit is contained in:
@@ -776,7 +776,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print "<td><label><img src='images/$plugin_icon' alt=''> $name</label></td>";
|
||||
print "<td>" . htmlspecialchars($about[1]);
|
||||
if (@$about[4]) {
|
||||
print " — <a target=\"_blank\" class=\"visibleLink\"
|
||||
print " — <a target=\"_blank\" rel=\"noopener noreferrer\" class=\"visibleLink\"
|
||||
href=\"".htmlspecialchars($about[4])."\">".__("more info")."</a>";
|
||||
}
|
||||
print "</td>";
|
||||
@@ -835,7 +835,7 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print "<td><label for='FPCHK-$name'><img src='images/$plugin_icon' alt=''> $name</label></td>";
|
||||
print "<td><label for='FPCHK-$name'>" . htmlspecialchars($about[1]) . "</label>";
|
||||
if (@$about[4]) {
|
||||
print " — <a target=\"_blank\" class=\"visibleLink\"
|
||||
print " — <a target=\"_blank\" rel=\"noopener noreferrer\" class=\"visibleLink\"
|
||||
href=\"".htmlspecialchars($about[4])."\">".__("more info")."</a>";
|
||||
}
|
||||
print "</td>";
|
||||
|
||||
Reference in New Issue
Block a user