Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-viewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnew-gh <github@hazelden.ca>2021-04-20 08:11:44 +0300
committerjnew-gh <github@hazelden.ca>2021-04-20 08:11:44 +0300
commitf3ad025583c2ceb2d7a36fd0d064c31f3e36ebdf (patch)
tree3fa18440a07d8a1cfc69d7168cf286794a5dee7c /dmarcts-report-viewer-options.php
parentf4ca2b7effdd39e4d7e0b0fa2f3b4a8691aae949 (diff)
Move test_input() to common.php
test_input() is used in more than one file so it makes sense to move it to the common.php file. Add $_POST variable vaildation with test_input.
Diffstat (limited to 'dmarcts-report-viewer-options.php')
-rw-r--r--dmarcts-report-viewer-options.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/dmarcts-report-viewer-options.php b/dmarcts-report-viewer-options.php
index a028a09..80af053 100644
--- a/dmarcts-report-viewer-options.php
+++ b/dmarcts-report-viewer-options.php
@@ -245,15 +245,6 @@ function create_select($option_name, $option = array(), $var) {
$html[] = " </tr>";
}
-function test_input($data) {
-
- $data = trim($data);
- $data = stripslashes($data);
- $data = htmlspecialchars($data);
-
- return $data;
-}
-
//####################################################################
//### main ###########################################################