fix: remove call to deprecated function

This commit is contained in:
Martin Monperrus
2024-01-14 09:27:26 +01:00
committed by GitHub
parent 1831eb3639
commit 8fdc86f4bd
-3
View File
@@ -4911,9 +4911,6 @@ class Dispatcher {
function keys() { function keys() {
// Create array from list of bibtex entries // Create array from list of bibtex entries
if (get_magic_quotes_gpc()) {
$_GET[Q_KEYS] = stripslashes($_GET[Q_KEYS]);
}
$_GET[Q_KEYS] = (array) json_decode(urldecode($_GET[Q_KEYS])); // decode and cast the object into an (associative) array $_GET[Q_KEYS] = (array) json_decode(urldecode($_GET[Q_KEYS])); // decode and cast the object into an (associative) array
// Make the array 1-based (keeps the string keys unchanged) // Make the array 1-based (keeps the string keys unchanged)
array_unshift($_GET[Q_KEYS],"__DUMMY__"); array_unshift($_GET[Q_KEYS],"__DUMMY__");