Eine Frage. Ich betreibe eine Webseite mit Datenbank. Im Quelltext der Index.php befand sich fogender Code:
Jemand sagte mir dass dieser Code total unsicher ist und quasi ein Einfallstor für Hacker , und ich soll ihn abändern damit er so aussieht:
Meine Frage: Stimmt das oder bin ich verarscht worden ?
PHP-Code:
PHP-Code:
<?php
if ($section == "") main($action);
else $section($action, $regkey);
?>
PHP-Code:
PHP-Code:
<?php
if (in_array($section, array('section1', 'section2', 'section3'), true) {
$section($action, $regkey);
} else {
main($action);
}
?>

Kommentar