mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
Normalise textarea line endings from CRLF to LF. This also needs to happen in other textareas that support multicode, but we'll start here.
This commit is contained in:
parent
52e5fc545c
commit
5c73644cb1
1 changed files with 4 additions and 0 deletions
|
@ -892,6 +892,10 @@ class Item extends Controller
|
|||
$allow_empty = ((($checkin || $checkout) && $haslocation) || $_REQUEST['allow_empty']);
|
||||
$private = ((isset($private) && $private) ? $private : intval($acl->is_private() || ($public_policy)));
|
||||
|
||||
// Normalise the line endings on multi-line fields.
|
||||
$summary = str_replace("\r\n", "\n", $summary);
|
||||
$body = str_replace("\r\n", "\n", $body);
|
||||
|
||||
// If this is a comment, set the permissions from the parent.
|
||||
|
||||
if ($parent_item) {
|
||||
|
|
Loading…
Reference in a new issue