From f7057feba11d0bbd67d5734603208e1446bc36c5 Mon Sep 17 00:00:00 2001 From: Znote Date: Thu, 9 Apr 2015 23:56:19 +0200 Subject: [PATCH] Adding getValue and sanitize function to ipn.php so the validation functions actually work. --- ipn.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ipn.php b/ipn.php index b53f473..0a7f8bf 100644 --- a/ipn.php +++ b/ipn.php @@ -7,6 +7,14 @@ require 'config.php'; require 'engine/database/connect.php'; + // Fetch and sanitize POST and GET values + function getValue($value) { + return (!empty($value)) ? sanitize($value) : false; + } + function sanitize($data) { + return htmlentities(strip_tags(mysql_znote_escape_string($data))); + } + function VerifyPaypalIPN(array $IPN = null){ if(empty($IPN)){ $IPN = $_POST;