mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 12:16:57 +00:00
issue 55: properly displays links to users
This commit is contained in:
parent
769c2d40bd
commit
7e4de9ebee
2 changed files with 6 additions and 4 deletions
|
@ -76,7 +76,7 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
|
|||
echo '<a href="'; // begin a href
|
||||
}
|
||||
//echo $data[3] . '"> '; // display the link
|
||||
echo $urllink . '"> '; // display the link
|
||||
echo htmlspecialchars_decode($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
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
session_start();
|
||||
if (isset($_POST['submit'])){
|
||||
// Clear user input
|
||||
$link = htmlspecialchars($_POST['link']);
|
||||
// Link checks
|
||||
$link = str_replace(['<','>'],'', $_POST['link']);
|
||||
// Clear user input
|
||||
$link = htmlspecialchars($link);
|
||||
$name = htmlspecialchars($_POST['name']);
|
||||
$description = htmlspecialchars($_POST['description']);
|
||||
$sensitive = htmlspecialchars($_POST['sensitive']);
|
||||
|
@ -33,7 +35,7 @@ if (isset($_POST['submit'])){
|
|||
fclose($file);
|
||||
} else {
|
||||
// Handle error opening the file
|
||||
errorlog("Error opening the file.");
|
||||
error_log("Error opening the file.");
|
||||
}
|
||||
echo "Link Successfully Submitted";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue