Dennis1993
2013-08-06 df618da530cccfcf5829abe009df875f57cbf8ec
program/lib/Roundcube/bootstrap.php
@@ -39,13 +39,13 @@
if (php_sapi_name() != 'cli') {
    $config += array(
        'suhosin.session.encrypt' => 0,
        'session.auto_start'      => 0,
        'file_uploads'            => 1,
    );
}
foreach ($config as $optname => $optval) {
    if ($optval != ini_get($optname) && @ini_set($optname, $optval) === false) {
    $ini_optval = filter_var(ini_get($optname), FILTER_VALIDATE_BOOLEAN);
    if ($optval != $ini_optval && @ini_set($optname, $optval) === false) {
        $error = "ERROR: Wrong '$optname' option value and it wasn't possible to set it to required value ($optval).\n"
            . "Check your PHP configuration (including php_admin_flag).";
        if (defined('STDERR')) fwrite(STDERR, $error); else echo $error;
@@ -289,32 +289,6 @@
{
    $regexp = $control_chars ? '/[^\x00-\x7F]/' : '/[^\x20-\x7E]/';
    return preg_match($regexp, $str) ? false : true;
}
/**
 * Remove single and double quotes from a given string
 *
 * @param string Input value
 *
 * @return string Dequoted string
 */
function strip_quotes($str)
{
    return str_replace(array("'", '"'), '', $str);
}
/**
 * Remove new lines characters from given string
 *
 * @param string $str  Input value
 *
 * @return string Stripped string
 */
function strip_newlines($str)
{
    return preg_replace('/[\r\n]/', '', $str);
}