From def8f50065a593a06a051ceb58b7686884a8ce58 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Thu, 29 Aug 2013 22:35:00 +0100 Subject: New filter/validation functions for GET/POST variables --- modules_v3/individuals/module.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules_v3/individuals/module.php') diff --git a/modules_v3/individuals/module.php b/modules_v3/individuals/module.php index c6f2950916..09caef3268 100644 --- a/modules_v3/individuals/module.php +++ b/modules_v3/individuals/module.php @@ -64,9 +64,9 @@ class individuals_WT_Module extends WT_Module implements WT_Module_Sidebar { // Implement WT_Module_Sidebar public function getSidebarAjaxContent() { - $alpha =safe_GET('alpha'); // All surnames beginning with this letter where "@"=unknown and ","=none - $surname =safe_GET('surname', '[^<>&%{};]*'); // All indis with this surname. NB - allow ' and " - $search =safe_GET('search'); + $alpha = WT_Filter::get('alpha'); // All surnames beginning with this letter where "@"=unknown and ","=none + $surname = WT_Filter::get('surname'); // All indis with this surname. + $search = WT_Filter::get('search'); if ($search) { return $this->search($search); @@ -230,4 +230,4 @@ class individuals_WT_Module extends WT_Module implements WT_Module_Sidebar { $out .= ''; return $out; } -} +} \ No newline at end of file -- cgit v1.3