Old content with different line endings can break diff entirely

Created on 22 September 2023, about 1 year ago
Updated 2 September 2024, 4 months ago

Problem/Motivation

An error has started popping up more and more on our project where old revisions containing \r\n line endings are resulting in errors when compared with new revisions that only contain \n

The error is Uncaught PHP Exception InvalidArgumentException: "Invalid $mode 3 specified" and results in a 503.

Steps to reproduce

I've only seen this happen with really old revisions, now \r seems to get auto stripped from WYSIWYG content.

Proposed resolution

?

Remaining tasks

πŸ› Bug report
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024