vanye
February 20, 2023, 4:49pm
1
When creating goals for a search function, Matomo autocorrects my regular expression to html entities. To be precise, a &
becomes .*&
So, the regular expression I enter is .*&license_id=(.+)$
When I save the goal, it automatically becomes .*&license_id=(. )$
What am I doing wrong?
vanye
February 21, 2023, 8:40am
2
PS: Also, the “+” gets deleted.
Hi @vanye
Is it related to:
opened 09:57AM - 09 Jan 23 UTC
Bug
## Expected Behavior
I guess goal names / titles should accept a & character
…
## Current Behavior
Everything after the "&" is scrapped when saving a goal.
My example:
`2. Mikro: Klickar till etjänsten "Felanmälan&`
When I try:
`2. Mikro: Klickar till etjänsten "Felanmälan&syn"`
## Steps to Reproduce (for Bugs)
The demo environment do not allow me to enter goals.
## Context
I'm trying to have ampersands and other special characters in the name of a goal
## Your Environment
* Matomo Version: 4.13.0
* PHP Version: 7.4.32
* Server Operating System: Ubuntu LTS
* Browser: Brave (Chromium)
* Operating System: Macos 12.6.2
Don’t hesitate to add more info in the above ticket…
vanye
March 6, 2023, 4:19pm
4
It is not related. @marcusosterberg is trying to insert the &-character in the title of the goal. My problem is the goal itself, i.e. the regular expression.
I just asked in the GitHub ticket if the problem is the same or not…
1 Like