-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix regex of iconsCacher #10326
Fix regex of iconsCacher #10326
Conversation
lib/private/Template/IconsCacher.php
Outdated
@@ -47,7 +47,7 @@ class IconsCacher { | |||
protected $urlGenerator; | |||
|
|||
/** @var string */ | |||
private $iconVarRE = '/--(icon-[a-z0-9-]+): url\(["\']([a-z0-9-_\~\/\?\&\=\.]+)[^;]+;/m'; | |||
private $iconVarRE = '/--(icon-[a-z0-9-]+): url\(["\']([a-z0-9-_\~\/\.]+)[^;]+;/m'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just recognized it might make sense to also allow uppercase chars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes I guess :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory fine. But I always like it is we have test for stuff like this.
Right! Let me add tests :) |
Now I get this instead:
|
@MorrisJobke wrong icon, star_dark comes from core/actions. I'll fix it |
Just noticed that it was before like this:
|
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
4702578
to
f62d4d1
Compare
Tests added! |
|
Fix #10309