?
avatar Tomas42
Tomas42
28 Sep 2016

Steps to reproduce the issue

Create an article. Insert
<hr id="system-readmore" style="width: 1013.75px; word-spacing: 0px;">
instead of
<hr id="system-readmore"/>
into an article to create an introtext.

Expected result

ignores additional parameter and splits text into intro+fulltext

Actual result

doesnt split, ignores hr.

Additional comments

Dont ask me why or how they added the parameters, they did.

possible solution

change regex-pattern in libraries/legacy/table/content.php:128 (function bind)
from

$pattern = '#<hr\s+id=("|\')system-readmore("|\')\s*\/*>#i';

to

$pattern = '#<hr\s+id=("|\')system-readmore("|\')[^>]*\/*>#i';
avatar Tomas42 Tomas42 - open - 28 Sep 2016
avatar Tomas42 Tomas42 - change - 28 Sep 2016
The description was changed
avatar Tomas42 Tomas42 - edited - 28 Sep 2016
avatar Tomas42 Tomas42 - change - 28 Sep 2016
The description was changed
avatar Tomas42 Tomas42 - change - 28 Sep 2016
The description was changed
avatar Tomas42 Tomas42 - edited - 28 Sep 2016
avatar Tomas42 Tomas42 - change - 28 Sep 2016
The description was changed
avatar Tomas42 Tomas42 - change - 28 Sep 2016
The description was changed
avatar Tomas42 Tomas42 - edited - 28 Sep 2016
avatar dgt41
dgt41 - comment - 28 Sep 2016

Since you are providing a solution here, can you also create a pull request so people can test it?

avatar brianteeman
brianteeman - comment - 28 Sep 2016

Closed as we have a pr

avatar brianteeman brianteeman - change - 28 Sep 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-09-28 19:36:33
Closed_By brianteeman
avatar brianteeman brianteeman - close - 28 Sep 2016
avatar Sieger66
Sieger66 - comment - 3 Mar 2017

Additional step to see and reproduce the issue :

Chance the editor to "Editor-None" and save a article for example with insert of:
<hr id="system-readmore" style="width: 1013.75px; word-spacing: 0px;">
to create an introtext.

Show the article on front-end.

Add a Comment

Login with GitHub to post a comment