Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{flag::##raw_data_filled##|nl2br}} breaks when using "|" #203

Open
ngdot opened this issue Jan 31, 2023 · 1 comment
Open

{{flag::##raw_data_filled##|nl2br}} breaks when using "|" #203

ngdot opened this issue Jan 31, 2023 · 1 comment

Comments

@ngdot
Copy link

ngdot commented Jan 31, 2023

If you use {{flag::##raw_data_filled##|nl2br}} in a email html notification for example, it will break if the user writes "|" into the input. It will break too, if the label of the input contains "|". The output stops by the first "|" sign.

System-Log:
Unknown insert tag flag " DE " in {{flag::Firma: Verein | DE |nl2br}} on page https://***/
Verein | DE was the user input.

Ofcourse I can remove the "|" characters from the label, but without further ado I can't prevent "|" is used by the user.

Tested with:
Contao 4.13.15
Notification Center: 1.7.1
Haste: 5.0.16

@fritzmg
Copy link
Collaborator

fritzmg commented Jan 31, 2023

This is not an issue with Haste, that's a limitation of Insert Tags in general.

// accidentally clicked close

@fritzmg fritzmg closed this as completed Jan 31, 2023
@fritzmg fritzmg reopened this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants