mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Adding getValue and sanitize function to ipn.php so the validation functions actually work.
This commit is contained in:
parent
28d112380f
commit
f7057feba1
8
ipn.php
8
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user