issue #49: link with status 0.0 now removes the whole line and add fixes with issues for php8.4

This commit is contained in:
SovereigntyIsNotFreedom 2025-04-11 09:04:52 +01:00
parent 13d39dc5c2
commit 46bd00a05a
3 changed files with 17 additions and 11 deletions

View file

@ -10,7 +10,7 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
$oldcatname="";
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
$data[0]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[0]);
// PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
$data[0] = htmlspecialchars($data[0]);