Skip to content
Snippets Groups Projects
Commit b8da23e0 authored by Olav Morken's avatar Olav Morken
Browse files

frontpage: Warning if Suhosin limits the maximum length of query parameters.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2776 44740490-163a-0410-bde0-09ae8108e29a
parent 24db2740
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,9 @@
"warnings_https": {
"en": "<strong>You are not using HTTPS<\/strong> - encrypted communication with the user. HTTP works fine for test purposes, but in a production environment, you should use HTTPS. [ <a href=\"http:\/\/rnd.feide.no\/content\/simplesamlphp-maintenance-and-configuration\">Read more about simpleSAMLphp maintenance<\/a> ]"
},
"warnings_suhosin_url_length": {
"en": "The length of query parameters is limited by the PHP Suhosin extension. Please increase the suhosin.get.max_value_length option to at least 2048 bytes."
},
"link_saml2example": {
"en": "SAML 2.0 SP example - test logging in through your IdP"
},
......
......@@ -1065,5 +1065,9 @@
"ja": "simpleSAMLphp\u8a2d\u5b9a\u30da\u30fc\u30b8",
"nl": "simpleSAMLphp installatiepagina",
"zh-tw": "simpleSAMLphp \u5b89\u88dd\u9801\u9762"
},
"warnings_suhosin_url_length": {
"no": "Lengden p\u00e5 foresp\u00f8rselparametre er begrenset av PHP Suhosin utvidelsen. Vennligst \u00f8k suhosin.get.max_value_length konfigurasjonsinnstillingen til minst 2048 tegn.",
"nn": "Lengda p\u00e5 f\u00f8respurnadargumenta er begrensa av PHP Suhosin utvidinga. V\u00e6r vennleg og \u00f8k suhosin.get.max_value_length konfigurasjonsinnstillinga til minst 2048 teikn."
}
}
......@@ -20,6 +20,10 @@ if (!SimpleSAML_Utilities::isHTTPS()) {
$warnings[] = '{core:frontpage:warnings_https}';
}
$suhosinLength = ini_get('suhosin.get.max_value_length');
if ($suhosinLength !== FALSE && (int)$suhosinLength < 2048) {
$warnings[] = '{core:frontpage:warnings_suhosin_url_length}';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment