Old content with different line endings can break diff entirely

Created on 22 September 2023, 9 months ago
Updated 23 October 2023, 8 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.69.0 2024