Skip to content
Permalink
Browse files

Remove references to magic_quotes, because it's been removed since 5.4.

  • Loading branch information
kohler committed Dec 14, 2019
1 parent 490446d commit bfbcb7dc795bd8e6489dfce48b1001ab9acc8448
Showing with 0 additions and 7 deletions.
  1. +0 −3 .htaccess
  2. +0 −4 src/partials/p_adminhome.php
@@ -11,9 +11,6 @@
# A large memory_limit helps when sending very large zipped files.
php_value memory_limit 128M

# Turn off the hateful magic_quotes_gpc.
php_flag magic_quotes_gpc off

# Default to UTF-8 (most scripts will override this with <meta>).
AddDefaultCharset UTF-8

@@ -37,10 +37,6 @@ static function render(Contact $user) {
$memory_limit = ini_get_bytes("memory_limit");
if ($post_max_size >= $memory_limit)
$m[] = $errmarker . "PHP’s <code>memory_limit</code> setting is smaller than its <code>post_max_size</code> setting. The <code>memory_limit</code> value should be at least as big. Change this setting in HotCRP’s <code>.htaccess</code> and <code>.user.ini</code> files or change it in your global <code>php.ini</code> file.";
if (get_magic_quotes_gpc())
$m[] = $errmarker . "The PHP <code>magic_quotes_gpc</code> feature is on, which is a bad idea. Check that your Web server is using HotCRP’s <code>.htaccess</code> file. You may also want to disable <code>magic_quotes_gpc</code> in your <code>php.ini</code> configuration file.";
if (get_magic_quotes_runtime())
$m[] = $errmarker . "The PHP <code>magic_quotes_runtime</code> feature is on, which is a bad idea. Check that your Web server is using HotCRP’s <code>.htaccess</code> file. You may also want to disable <code>magic_quotes_runtime</code> in your <code>php.ini</code> configuration file.";
if (defined("JSON_HOTCRP"))
$m[] = "Your PHP was built without JSON functionality. HotCRP is using its built-in replacements; the native functions would be faster.";
if ((int) ini_get("session.gc_maxlifetime") < $conf->opt("sessionLifetime", 86400)

0 comments on commit bfbcb7d

Please sign in to comment.
You can’t perform that action at this time.