issue 55: properly displays links to users

This commit is contained in:
SovereigntyIsNotFreedom 2025-04-20 15:33:21 -04:00
parent 769c2d40bd
commit 7e4de9ebee
2 changed files with 6 additions and 4 deletions

View file

@ -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";
}