Unsanitizes a single input value and returns the result.
public static unsanitizeInputValue ( string $value ) : string | ||
$value | string | |
return | string | unsanitized input |
if (isset($_POST['name'])) { $name = Piwik\Common::unsanitizeInputValue($_POST['name']); // do something with sanitized name }In the above example, the UnsantizeInputValue function is used to remove any malicious characters potentially contained in the name input. Another example is when receiving input data from external sources such as APIs or remote web services. In such scenarios, unsanitized input data may contain malicious scripts that can harm the server or the user's computer. In conclusion, the Common unsanitizeInputValue function is an important security feature that ensures that user input data is sanitized before being processed, thereby preventing potential security threats. The function can be found in the Piwik PHP library.
public static unsanitizeInputValue ( string $value ) : string | ||
$value | string | |
return | string | unsanitized input |