mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +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 '<a href="'; // begin a href
|
||||||
}
|
}
|
||||||
//echo $data[3] . '"> '; // display the link
|
//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[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[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
|
echo $data[7] . " </td><td>"; // display the score and close the second cell, open the third cell
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
if (isset($_POST['submit'])){
|
if (isset($_POST['submit'])){
|
||||||
// Clear user input
|
// Link checks
|
||||||
$link = htmlspecialchars($_POST['link']);
|
$link = str_replace(['<','>'],'', $_POST['link']);
|
||||||
|
// Clear user input
|
||||||
|
$link = htmlspecialchars($link);
|
||||||
$name = htmlspecialchars($_POST['name']);
|
$name = htmlspecialchars($_POST['name']);
|
||||||
$description = htmlspecialchars($_POST['description']);
|
$description = htmlspecialchars($_POST['description']);
|
||||||
$sensitive = htmlspecialchars($_POST['sensitive']);
|
$sensitive = htmlspecialchars($_POST['sensitive']);
|
||||||
|
@ -33,7 +35,7 @@ if (isset($_POST['submit'])){
|
||||||
fclose($file);
|
fclose($file);
|
||||||
} else {
|
} else {
|
||||||
// Handle error opening the file
|
// Handle error opening the file
|
||||||
errorlog("Error opening the file.");
|
error_log("Error opening the file.");
|
||||||
}
|
}
|
||||||
echo "Link Successfully Submitted";
|
echo "Link Successfully Submitted";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue