You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 9339 of asciidoctor.js seems to replace blanks with 0's in attributes string. Then line 93340 does the inverse using 0's to split into an array. The issue arises when attribute name or value contain 0. In such a case the code below incorrectly splits attribute name or value and inserts partial key or value in the target array.
If we have to do such an ugly hack I recommend using some more unique string than only '0' character.
Aha! This is happening because Opal is interpreting the null character as a
0. I have a fix I've used for other control characters. I'll apply it to
the null character as well for the upcoming 1.5.0.preview.2 release of
Asciidoctor.
I believe Opal has corrected this parse issue in master, but until the
0.6.0 release, we'll use the workaround.
I filed this issue as #883. I've also resolved it. Once I release preview2,
I'll update the Asciidoctor.js build, since some other changes are
necessary as well.
Line 9339 of asciidoctor.js seems to replace blanks with 0's in attributes string. Then line 93340 does the inverse using 0's to split into an array. The issue arises when attribute name or value contain 0. In such a case the code below incorrectly splits attribute name or value and inserts partial key or value in the target array.
If we have to do such an ugly hack I recommend using some more unique string than only '0' character.
Adam
The text was updated successfully, but these errors were encountered: