git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
19a2c96
Branches
Tags
master
ticket
webinterface.git
inc
security.php
Diverse shell-kritische zeichen raus
bernd
commited
19a2c96
at 2007-06-16 14:33:33
security.php
Blame
History
Raw
<?php function filter_input_general( $input ) { return htmlspecialchars(iconv('UTF-8', 'UTF-8', $input), ENT_QUOTES, 'UTF-8'); } function filter_input_username( $input ) { return ereg_replace("[^[:alnum:]\_\.\+\-]", "", $input ); } function filter_quotes( $input ) { return ereg_replace('["\'`]', '', $input ); } function filter_shell( $input ) { return ereg_replace('["\'` \t\r\n]', '', $input ); } ?>