summaryrefslogtreecommitdiff
path: root/app/Filter.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-06-18 16:42:19 +0100
committerGreg Roach <fisharebest@gmail.com>2017-06-18 16:42:19 +0100
commitb2e56429d426af28514512b798d2cd4ac417cc0e (patch)
tree4c703417e934cc00cee9dda66e3d04842056b168 /app/Filter.php
parent3c490f5cd9106edc9ae9920bffb1f58b6012df2e (diff)
downloadwebtrees-b2e56429d426af28514512b798d2cd4ac417cc0e.tar.gz
webtrees-b2e56429d426af28514512b798d2cd4ac417cc0e.tar.bz2
webtrees-b2e56429d426af28514512b798d2cd4ac417cc0e.zip
Fix #1231 - PHP cannot validate emails
Diffstat (limited to 'app/Filter.php')
-rw-r--r--app/Filter.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/app/Filter.php b/app/Filter.php
index 5da8b12363..b4491cf7a8 100644
--- a/app/Filter.php
+++ b/app/Filter.php
@@ -291,18 +291,6 @@ class Filter {
}
/**
- * Validate email GET parameters
- *
- * @param string $variable
- * @param string $default
- *
- * @return string
- */
- public static function getEmail($variable, $default = '') {
- return filter_input(INPUT_GET, $variable, FILTER_VALIDATE_EMAIL) ?: $default;
- }
-
- /**
* Validate URL GET parameters
*
* @param string $variable
@@ -366,18 +354,6 @@ class Filter {
}
/**
- * Validate email POST parameters
- *
- * @param string $variable
- * @param string $default
- *
- * @return string
- */
- public static function postEmail($variable, $default = '') {
- return filter_input(INPUT_POST, $variable, FILTER_VALIDATE_EMAIL) ?: $default;
- }
-
- /**
* Validate URL GET parameters
*
* @param string $variable