From 4ace8344cfd8769ef059ec5c920ac663c8c1d4ce Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Thu, 27 Jan 2011 18:18:23 +0000 Subject: improved search and impagination with CSS --- h-source/Application/Include/myFunctions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'h-source/Application/Include/myFunctions.php') diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 5c64317..55fbd9b 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -60,6 +60,11 @@ function sanitizeAlphanum($string) return $string; } +function sanitizePciid($string) +{ + $string = preg_match('/^[a-zA-Z0-9]{4}(\:)[a-zA-Z0-9]{4}$/',$string) ? sanitizeAll($string) : '0'; + return $string; +} function getOrderByClause($string) { -- cgit v1.2.3