Commit 4c9f415b by chrisndodge

Merge pull request #8131 from edx/cdodge/fix-encoding-of-course-id

need to urlencode the course_id when constructing the registration re…
parents c807a604 f655e7c3
......@@ -849,7 +849,7 @@ def course_about(request, course_id):
shoppingcart.models.CourseRegCodeItem.contained_in_order(cart, course_key)
reg_then_add_to_cart_link = "{reg_url}?course_id={course_id}&enrollment_action=add_to_cart".format(
reg_url=reverse('register_user'), course_id=course.id.to_deprecated_string())
reg_url=reverse('register_user'), course_id=urllib.quote(str(course_id)))
course_price = get_cosmetic_display_price(course, registration_price)
can_add_course_to_cart = _is_shopping_cart_enabled and registration_price
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment