- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_trim_badchar(const input: string): string;
function web_trim_badchar_ex(const input: string): string;
Arguments:
-
Description:
-
Removes vulnerable characters from string such as slashes, spaces, pipes, etc. Use it for filtering incoming data that will be used in file paths, system calls, etc. The extended (_ex) function trims even more characters.
Returns:
-
Filtered string.
Usage:
-
HackString:= web_trim_badchar('|hacker|I am ../bin/compromise/system/hack ../ ./ c:\hackmyfiles\try\');
See also:
-
web_disable_tags.
|