Browse Source

fix: remove call to deprecated function

pull/134/head
Martin Monperrus 2 years ago
committed by GitHub
parent
commit
8fdc86f4bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      bibtexbrowser.php

3
bibtexbrowser.php

@ -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__");

Loading…
Cancel
Save