fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6633] setup: check for suhosin.get.max_value_length


From: Sigurd Nes
Subject: [Fmsystem-commits] [6633] setup: check for suhosin.get.max_value_length
Date: Thu, 02 Dec 2010 22:30:24 +0000

Revision: 6633
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6633
Author:   sigurdne
Date:     2010-12-02 22:30:23 +0000 (Thu, 02 Dec 2010)
Log Message:
-----------
setup: check for suhosin.get.max_value_length

Modified Paths:
--------------
    trunk/setup/manageheader.php

Modified: trunk/setup/manageheader.php
===================================================================
--- trunk/setup/manageheader.php        2010-12-02 14:54:32 UTC (rev 6632)
+++ trunk/setup/manageheader.php        2010-12-02 22:30:23 UTC (rev 6633)
@@ -272,6 +272,22 @@
                                
                        }
 
+                       $get_max_value_length = '';
+                       if(ini_get('suhosin.get.max_value_length'))
+                       {
+                               if (ini_get('suhosin.get.max_value_length') < 
2000)
+                               {
+                                       $detected .= '<b><p align="center" 
class="msg">'
+                                               . lang('You need to set 
suhosin.get.max_value_length = 2000'). "\n"
+                                               . 
'</p></b><td></tr></table></body></html>';
+                                       die($detected);
+                               }
+                               else
+                               {
+                                       $get_max_value_length = '<li>' . 
lang('You appear to have suhosin.get.max_value_length > 2000') . "</li>\n";
+                               }
+                       }
+
                        $phpver = '<li>' . lang('You appear to be using PHP 
%1+', 5.2) . "</li>\n";
                        $supported_sessions_type = array('php', 'db');
 
@@ -289,6 +305,7 @@
 
                        $detected .= '<tr class="th"><td colspan="2">' . 
lang('Analysis') . "</td></tr><tr><td colspan=\"2\">\n<ul 
id=\"analysis\">\n$phpver";
                        $detected .= $request_order;
+                       $detected .= $get_max_value_length;
 
                        $supported_db = array();
                        if (extension_loaded('pgsql') || 
function_exists('pg_connect'))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]