Author: Mike Schinkel (mikeschinkel)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2021-07-24T00:39:15+02:00

Commit: 
https://github.com/php/web-php/commit/01337ed1937d7d40c7ab37e8a48d733148840f76
Raw diff: 
https://github.com/php/web-php/commit/01337ed1937d7d40c7ab37e8a48d733148840f76.diff

Remove use of get_magic_quotes_gpc()

As get_magic_quotes_gpc() has been removed in PHP 8.0, this PR removes it from 
the clean() function in layout.inc.

Closes GH-419.

Changed paths:
  M  include/layout.inc


Diff:

diff --git a/include/layout.inc b/include/layout.inc
index f66187b70..28e27ee99 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -249,7 +249,7 @@ function sect_to_file($string) {
 }
 
 function clean($var) {
-  return htmlspecialchars(get_magic_quotes_gpc() ? stripslashes($var) : $var, 
ENT_QUOTES);
+  return htmlspecialchars($var, ENT_QUOTES);
 }
 
 // Clean out the content of one user note for printing to HTML

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to