?
avatar ryandemmer
ryandemmer
25 May 2018

Steps to reproduce the issue

While logged in as a Super User:

In the Global Configuration, set the Default Editor to Editor - None.

In the Text Filters tab, set the Filter Type value to Default BlackList for the Super User group.

Save.

Go to Content -> Articles -> Add New Article.

Give the new article a Title, and add the following HTML, or a variation of it, to the Content field:

<p data-value="1">Some text</p>

Click the Save button.

Expected result

The article should be save with the original content added intact.

Actual result

The hyphen is removed from the data attribute, resulting in

<p datavalue="1">Some text</p>

System information (as much as possible)

Joomla 3.8.8

Additional comments

This issue was introduced in the Joomla 3.8.8 update via commit cf4c5df with the inclusion of line 867 in libraries/vendor/joomla/filter/src/InputFilter.php

This line should be amended to allow for the - character, eg:

$attrSubSet[0] = preg_replace('/[^\p{L}\p{N}\-\s]/u', '', $attrSubSet[0]);
avatar ryandemmer ryandemmer - open - 25 May 2018
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 May 2018
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-05-25 17:43:47
Closed_By joomla-cms-bot
avatar Quy Quy - change - 25 May 2018
Closed_By joomla-cms-bot Quy
avatar joomla-cms-bot joomla-cms-bot - close - 25 May 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 25 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20579

avatar Quy
Quy - comment - 25 May 2018

PR #20580

It is not necessary to create an issue if you have a PR ready.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20579.

Add a Comment

Login with GitHub to post a comment