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
|
@ -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