Skip to content

Commit ad16aee

Browse files
author
RedDragonWebDesign
committed
fix overint#4 - get_magic_quotes_gpc() deprecated
The magic quotes feature is completely removed as of PHP 8.0 Since it is impossible for it to be turned on, we do not need to stripslashes() at all now.
1 parent 635af4c commit ad16aee

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/PaypalIPN.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,8 @@ function verifyIPN()
8686
}
8787
}
8888
$req = 'cmd=_notify-validate';
89-
$get_magic_quotes_exists = false;
90-
if (function_exists('get_magic_quotes_gpc')) {
91-
$get_magic_quotes_exists = true;
92-
}
9389
foreach ($myPost as $key => $value) {
94-
if ($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1) {
95-
$value = urlencode(stripslashes($value));
96-
} else {
97-
$value = urlencode($value);
98-
}
90+
$value = urlencode($value);
9991
$req .= "&$key=$value";
10092
}
10193

0 commit comments

Comments
 (0)