Problem/Motivation
OrejimeManager::setOptIn() triggers a warning if the script contains a slash character:
Warning: preg_grep(): Unknown modifier 'o'
Steps to reproduce
Create an Orejime service with this in the Scripts field:
core/modules/toolbar/js/toolbar.js
Proposed resolution
I think the delimiter parameter of preg_quote should be used to escape slashes.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork orejime-3562816
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3562816-pregquote-should-also
changes, plain diff MR !18
Comments
Comment #3
prudloff commentedComment #4
fabsgugu commentedThis is a bug that has been fixed in version 3.
I will look into fixing this bug in version 2 as well soon.
Comment #6
fabsgugu commented