-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.7, 3.11.8, 4.0.1, 4.0.2
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-74947-master -
-
0
-
Team Hedgehog 4.1 sprint 0.1, Team Hedgehog 4.1 sprint 0.2
As an admin, when you try to add (or update) an external tool (LTI), the "Shared secret" is truncated at the < character.
Steps to reproduce:
- Login as Site Admin
- Go to: "Site administration / Plugins / Activity modules / External tool / Manage tools"
- Then click on "configure a tool manually"
- Put something in "Tool name" and "Tool URL"
- In "Shared secret" field, type text with a < character, like "rtyu<99" and validate with Enter
- Click on the eye icon to verify the value is ok
- Click "Save changes"
- Re-Edit the tool, and check "Shared secret" value by clicking again on the eye (It should be "rtyu<99" but is "rtyu" )
The problem is the same if you edit a pre-existing tool.
Seen in my 3.11.7 production Moodle, on my 4.0.1+ testing Moodle and https://sandbox.moodledemo.net/ and on 4.1dev Moodle on https://qa.moodledemo.net
Certainly also existing in previous Moodle versions.
I don't know if the same problem exists in other fields of the same type, elsewhere in Moodle... would certainly be interesting to check by someone knowing well when same type of field (or code) is used.
- Testing discovered
-
MDL-74950 Text is truncated when saved if a < is immediatly followed by (an)other character(s), and not by a space
- Closed