Adding block with underscore can cause problems
Bug #1971110 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
20.10 |
Fix Released
|
High
|
Unassigned | ||
21.04 |
Fix Released
|
High
|
Unassigned | ||
21.10 |
Fix Released
|
High
|
Unassigned | ||
22.04 |
Fix Released
|
High
|
Unassigned | ||
22.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
The following test will give an error:
1) Create a new page
2) Add a new block
3) Change the 'Placeholder' title to 'Text_block'
4) Click on the Content type option 'Text'
5) Get an error like this:
Invalid page control action: id_X_new_
The problem is the underscore in the title clashes with code that wants to work out what blocktype action is happening.
What we need to do is have the all the underscores in the title be turned into a url encoded values
To post a comment you must log in.
Patch for "main" branch: https:/ /reviews. mahara. org/c/mahara/ +/12676