diff options
author | Andrey Andreev <narf@devilix.net> | 2014-01-08 17:32:05 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-01-08 17:32:05 +0100 |
commit | bfb635b276d880336db795f1a603de66ccfc80f6 (patch) | |
tree | 1f1edf4376188523c79ff9e5084492b6af713923 /application | |
parent | 80a16b1cd0d4716b5ea41497685a8fac02e34333 (diff) |
Make newline standardization configurable
Added ['standardize_newlines']
Also altered the Session cookie driver, which experienced issues with this
feature due to it's HMAC verification failing after the Input class alters
newlines in non-encrypted session cookies.
Supersedes PR #2470
Diffstat (limited to 'application')
-rw-r--r-- | application/config/config.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/application/config/config.php b/application/config/config.php index 8d08a7401..cd2ca479b 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -327,6 +327,20 @@ $config['cookie_httponly'] = FALSE; /* |-------------------------------------------------------------------------- +| Standardize newlines +|-------------------------------------------------------------------------- +| +| Determines whether to standardize newline characters in input data, +| meaning to replace \r\n, \r, \n occurences with the PHP_EOL value. +| +| This is particularly useful for portability between UNIX-based OSes, +| (usually \n) and Windows (\r\n). +| +*/ +$config['standardize_newlines'] = TRUE; + +/* +|-------------------------------------------------------------------------- | Global XSS Filtering |-------------------------------------------------------------------------- | |