-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[plg_content_loadmodule] Prevent issues with regular expression characters #22034
Conversation
I have tested this item 🔴 unsuccessfully on 61ff38b Note: Append a Module by click on "Module"-Button load it by ID, so this Problem didn't exist. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22034. |
There's an error in testing instructions. The shortcode should contain module name, not just title. So, for example, |
I have tested this item ✅ successfully on a30e151 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22034. |
wouldn't it be easier to use preg_quote? |
This was meant to be faster but now I'm wondering whether we need to use utf8 string functions from |
No need to use utf8 functions. Works fine like this. |
I have tested this item ✅ successfully on c6c07d6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22034. |
@franz-wohlkoenig Please test latest commit. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22034. |
RTC as previous test still good (latest commits include only branch updates). This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22034. |
Thanks |
Pull Request for Issue #21329.
Summary of Changes
This is an alternative to Rosie-Eagle#1 and #21948.
This fixes the issue of module positions and modules with titles containing special regular expression characters not being loaded.
Testing Instructions
Note, the use of
}
hasn't been fixed.Copied from #21329 by franz-wohlkoenig:
{loadmodule mod_custom, Some math: 1 + 1 = 2}
Notice "{loadmodule mod_custom, Some math: 1 + 1 = 2}" not beeing replaced by the actual rendering of the module you created at steps 3 to 5. The text "{loadmodule mod_custom, Some math: 1 + 1 = 2}" is still there as if it were untouched.
Documentation Changes Required
No.