Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get simple 3.3.16 support for php 8.0
#12
(2021-11-24, 19:20:40)jofer Wrote: upload.php:
178 $dirSorted = subval_sort($dirsArray,'name'); 
a 's' disappeared
$dirSorted ... $dirsSorted

basic.php:
Why did you commented out the content of
safe_slash_html($text) { ... ?
Edit: Found https://github.com/GetSimpleCMS/GetSimpl...ssues/1342

Hi,
I am sure this is because the function get_magic_quotes_gpc() is removed in PHP 8.0
This is what I did:

function safe_slash_html($text) {

/* // PHP 8, no get_magic_quotes_gpc()
if (get_magic_quotes_gpc()==0) {
$text = addslashes(htmlspecialchars($text, ENT_QUOTES, 'UTF-8'));
} else {
$text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
}

return xmlFilterChars($text);
*/

// replacement
$text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
return xmlFilterChars($text);
}

Please see my post above
Reply


Messages In This Thread
RE: Get simple 3.3.16 support for php 8.0 - by Abbe - 2021-12-19, 05:41:09



Users browsing this thread: 3 Guest(s)