Adding getValue and sanitize function to ipn.php so the validation functions actually work.

This commit is contained in:
Znote 2015-04-09 23:56:19 +02:00
parent 28d112380f
commit f7057feba1

View File

@ -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;