Page MenuHomePhabricator

Course term is not checked for illegal characters (slash, in particular)
Closed, ResolvedPublic

Description

Course titles are not supposed to include slashes, because slashes are delimiters between course pages and institution pages and some of the code uses the number of slashes to determine how pages are handled and what their titles are.

However, slashes can enter the title of a course page if entered in the 'term' field. This results in a course for which Special:Enroll (at least) is broken.

Slashes should not be allowed in the 'term' of a course.


Version: master
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:58 AM
bzimport set Reference to bz72889.
bzimport added a subscriber: Unknown Object (MLST).

Change 183275 had a related patch set uploaded (by Sputniza):
Relates to bug T74889

https://gerrit.wikimedia.org/r/183275

Patch-For-Review

Change 183998 had a related patch set uploaded (by Nemo bis):
Change slashes for dashes

https://gerrit.wikimedia.org/r/183998

Patch-For-Review

Change 183998 merged by jenkins-bot:
Sanitize invalid titles: replace slash with hyphen

https://gerrit.wikimedia.org/r/183998

Reedy assigned this task to AndyRussG.
Reedy removed a project: Patch-For-Review.