Opened 11 years ago
Last modified 11 years ago
#11690 confirmed Bug
Placeholder with forbidden characters
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.3 |
Keywords: | Cc: |
Description
- Open placeholder sample (plugins/placeholder/samples/placeholder.html).
- In the source mode enter:
<p>This is a [[sample ]placeholder]].</p>
- Switch back to the WYSIWYG mode.
Result: there is no placeholder.
- In the source mode enter:
<p>This is a [[sample >placeholder]].</p>
- Switch back to the WYSIWYG mode.
Result: there is a placeholder.
- Open placeholder dialog.
- Press "Ok".
Result: Error message:
The placeholder can not be empty and can not contain any of following characters: [, ], <, >
On the one hand it is not possible to upcast placeholder with ']' character, because it is forbidden, but on the other we can do it with '>'.
In my opinion it should not be possible to upcast placeholder with forbidden character but also it would be good if user would be informed that the placeholder contains forbidden character.
Change History (2)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|
There are two problems actually. Placeholder does not encode
<>
characters when downcasting. I'm not sure if that shouldn't be done by htmlParser.text (constructor or writer).