summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-07-30 13:51:00 +0200
committerAleksander Machniak <alec@alec.pl>2012-07-30 13:51:00 +0200
commite8cab44de0b3d8dbff7a091a743fab0d644d5267 (patch)
treeb4e1506ee8da444c34ef73ab2493996c7dd59704 /program
parent358b0f8bbc99b83ce3660374d866a0d3a485fa69 (diff)
Set some php ini settings if possible
Diffstat (limited to 'program')
-rwxr-xr-xprogram/include/iniset.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/iniset.php b/program/include/iniset.php
index bd3200ad8..981425393 100755
--- a/program/include/iniset.php
+++ b/program/include/iniset.php
@@ -29,9 +29,10 @@ $crit_opts = array(
'session.auto_start' => 0,
'file_uploads' => 1,
'magic_quotes_runtime' => 0,
+ 'magic_quotes_sybase' => 0, // #1488506
);
foreach ($crit_opts as $optname => $optval) {
- if ($optval != ini_get($optname)) {
+ if ($optval != ini_get($optname) && @ini_set($optname, $optval) === false) {
die("ERROR: Wrong '$optname' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!");
}
}