The attribute parser has two problems that apply to unquoted values.

1. Escaped whitespace is not unescaped while parsing
2. Quote characters inside the value are not required to be escaped, and escaped quote characters will not be unescaped.

The second one is problematic because unescaped quote characters will be misinterpreted when they are at the beginning or end of the string.

Comments

cburschka created an issue. See original summary.

cburschka’s picture

Status: Active » Needs review
StatusFileSize
new3.74 KB

The test for this is committed separately.

cburschka’s picture

Status: Needs review » Fixed

And done. Now the test.

  • cburschka committed 874f0cd on 8.x-3.x
    Issue #2634170: Regex improvement
    
    Remove some redundant look-ahead...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.