Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Escape "$" in toolbar content #231

Merged
merged 2 commits into from
Apr 17, 2018
Merged

Escape "$" in toolbar content #231

merged 2 commits into from
Apr 17, 2018

Conversation

MatthiasKuehneEllerhold
Copy link
Contributor

I tried to display the string "$1", "$2" or any numeric after a dollar sign in the toolbar content and it failed. It just got filtered out by the toolbar listener.

After debugging I found the culprit in the ToolbarListener: preg_replace uses $0 .. $99 as replacement targets.
Escaping all "$" prior to the preg_replace call fixes that.

@weierophinney weierophinney merged commit d4763c2 into zendframework:master Apr 17, 2018
weierophinney added a commit that referenced this pull request Apr 17, 2018
…oller_numeric_in_toolbar

Escape "$" in toolbar content
weierophinney added a commit that referenced this pull request Apr 17, 2018
weierophinney added a commit that referenced this pull request Apr 17, 2018
weierophinney added a commit that referenced this pull request Apr 17, 2018
@weierophinney
Copy link
Member

Thanks, @MatthiasKuehneEllerhold!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants