MantisBT - ATutor
View Issue Details
0005043ATutorPretty Urlpublic2012-07-26 13:192012-08-31 17:48
cindy 
cindy 
normalminoralways
closedfixed 
2.0.3 
2.12.1 
SVN
d225acef654423ff818087e8c170482b2b556a5a
0005043: Some special characters in course name break pretty url
1. go to admin "system preference" page, enable pretty url and course directory name;
2. login as a instructor, go to "Properties" page, defined a course name as "main-site";
3. Click on any content, a blank page is thrown.

This is caused by the char "-" in the course name. Need to guard the course name before saving it at course "Properties" page.
No tags attached.
Issue History
2012-07-26 13:19cindyNew Issue
2012-07-26 13:19cindyStatusnew => assigned
2012-07-26 13:19cindyAssigned To => cindy
2012-07-26 13:56cindySVN Revision# => d225acef654423ff818087e8c170482b2b556a5a
2012-07-26 13:56cindyNote Added: 0005788
2012-07-26 13:56cindyStatusassigned => resolved
2012-07-26 13:56cindyFixed in Version => 2.1
2012-07-26 13:56cindyResolutionopen => fixed
2012-08-31 17:48gregNote Added: 0005824
2012-08-31 17:48gregStatusresolved => closed

Notes
(0005788)
cindy   
2012-07-26 13:56   
Enhance the validation of course directory name that is defined in course properties page and used by pretty url.

Affected scripts:
mods/_core/courses/lib/course.inc.php
mods/_core/properties/lib/course.inc.php
themes/default/admin/courses/edit_course.tmpl.php

Added the new language token "course_dir_name_contain_only" and modified "AT_ERROR_COURSE_DIR_NAME_INVALID" in both SVN and 2.1 central db.
(0005824)
greg   
2012-08-31 17:48   
closed in ATutor 2.1