diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-10 20:54:15 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-10 20:54:15 +0000 |
commit | c14194ab2d75927d46852e83c695f590f644ecc7 (patch) | |
tree | 7918ba0472e15ab3e9b02fac0a6ee1bdacaf028f | |
parent | 99da170defd6482221502294cfafcca9c1c5a776 (diff) |
Warn users if they have suhosin.session.encrypt enabled that it'll break the uploader
-rw-r--r-- | core/views/simple_uploader.html.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/views/simple_uploader.html.php b/core/views/simple_uploader.html.php index 829c8fbc..36257761 100644 --- a/core/views/simple_uploader.html.php +++ b/core/views/simple_uploader.html.php @@ -10,6 +10,14 @@ </form> <div id="gAddPhotos"> + <? if (ini_get("suhosin.session.encrypt")): ?> + <div class="gError"> + <?= t("Error: your server is configured to use the <a href=\"%encrypt_url\"><code>suhosin.session.encrypt</code></a> setting from <a href=\"%suhosin_url\">Suhosin</a>. You must disable this setting to upload photos.", + array("encrypt_url" => "http://www.hardened-php.net/suhosin/configuration.html#suhosin.session.encrypt", + "suhosin_url" => "http://www.hardened-php.net/suhosin/")) ?> + </div> + <? endif ?> + <p> <?= t("Photos will be uploaded to album: ") ?> </p> |