issue #49: link with status 0.0 will not be shown and somepthere fixes for security

This commit is contained in:
SovereigntyIsNotFreedom 2025-04-10 08:20:15 +01:00
parent 13d39dc5c2
commit 39d93838e5
2 changed files with 8 additions and 4 deletions

View file

@ -76,7 +76,11 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
echo $urllink . '"> '; // display the link
echo $data[2] . ' </a></p></td><td class="description">'; // display the link title and close the a href and first cell, open the second cell
echo $data[5] . " </td><td>"; // OPTIONAL: display the description column
echo $data[7] . " </td><td>"; // display the score and close the second cell, open the third cell
if ($data[7] == 0.0){
continue;
}else{
echo $data[7] . " </td><td>"; // display the score and close the second cell, open the third cell
}
if($data[6] == "YES"){
echo "✔️" ;
}else{

View file

@ -9,12 +9,12 @@
<meta property="og:title" content="Darknet Lantern" />
<meta property="og:type" content="website" />
<!-- // Now displays the url of the instance -->
<meta property="og:url" content="<?php echo htmlspecialchars($_SERVER['HTTP_HOST']); ?>" />
<meta property="og:url" content="<?php echo htmlspecialchars($_SERVER['SERVER_NAME']); ?>" />
<!-- // Default images for previews -->
<meta property="og:image:url" content="<?php echo htmlspecialchars($_SERVER['HTTP_HOST']) . "/img/logo-large.png"; ?>" />
<meta property="og:image:url" content="<?php echo htmlspecialchars($_SERVER['SERVER_NAME']) . "/img/logo-large.png"; ?>" />
<meta property="og:locale" content="en_US" />
<!-- // This tells search engines which URL should be considered the original source when multiple URLs contain the same content. -->
<link rel="canonical" href="<?php echo htmlspecialchars($_SERVER['HTTP_HOST']); ?>" />
<link rel="canonical" href="<?php echo htmlspecialchars($_SERVER['SERVER_NAME']); ?>" />
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" href="/img/logo-favicon.png">
</head>