Entering only numbers followed with the colon into the textarea field will result in “DATA:IMAGE/SVG+XL; BASE64,…” garbage output in the Cornerstone editor.
Samples of the problematic values:
1:
01:
999:
11:00 << this is 24hour time format!
01:00 << this is 24hour time format!
OK value:
00:00
If you add any text character or space to the above problematic characters, the output is OK.
E.g.:
"11:00 "
“11:00a”
(with or without ")
When viewed in the browser, all the above problematic and non-problematic cases are displayed correctly!
Setup to reproduce the problem:
Basic setup and hierarchy:
Component parameters:
Data is inserted into the text element like so:
Output in the editor:
data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0OHB4JyBoZWlnaHQ9JzQ4cHgnIHZpZXdCb3g9JzAgMCA0OCA0OCcgdmVyc2lvbj0nMS4xJz48cmVjdCBmaWxsPSdyZ2JhKDAsIDAsIDAsIDAuMzUpJyB4PScwJyB5PScwJyB3aWR0aD0nNDgnIGhlaWdodD0nNDgnPjwvcmVjdD48L3N2Zz4=
How do we fix the problem?
Looking forward to hearing from you.
Kind regards.