Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
4ba17920
Unverified
Commit
4ba17920
authored
5 years ago
by
Ayub
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21361 from edx/BOM-87
BOM-87
parents
4c07dddc
ea0c6922
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/templates/support/index.html
+2
-1
2 additions, 1 deletion
lms/templates/support/index.html
openedx/core/djangoapps/safe_sessions/middleware.py
+2
-3
2 additions, 3 deletions
openedx/core/djangoapps/safe_sessions/middleware.py
with
4 additions
and
4 deletions
lms/templates/support/index.html
+
2
−
1
View file @
4ba17920
## mako
<
%
page
expression_filter=
"h"
/>
<
%!
import
six
from
django.urls
import
reverse
from
django.utils.translation
import
ugettext
as
_
%
>
...
...
@@ -17,7 +18,7 @@ ${_("Student Support")}
<h1>
${_("Student Support")}
</h1>
<ul>
% for url in urls:
<li><a
href=
"${url["
url
"]}"
>
${
unicod
e(url["name"])}
</a>
: ${
unicod
e(url["description"])}
</li>
<li><a
href=
"${url["
url
"]}"
>
${
six.text_typ
e(url["name"])}
</a>
: ${
six.text_typ
e(url["description"])}
</li>
% endfor
</ul>
</section>
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/safe_sessions/middleware.py
+
2
−
3
View file @
4ba17920
...
...
@@ -160,7 +160,7 @@ class SafeCookieData(object):
))
return
safe_cookie_data
def
__
unicode
__
(
self
):
def
__
str
__
(
self
):
"""
Returns a string serialization of the safe cookie data.
"""
...
...
@@ -202,7 +202,7 @@ class SafeCookieData(object):
hash_func
=
sha256
()
for
data_item
in
[
self
.
version
,
self
.
session_id
,
user_id
]:
hash_func
.
update
(
six
.
b
(
six
.
text_type
(
data_item
)))
hash_func
.
update
(
b
'
|
'
)
hash_func
.
update
(
six
.
b
(
'
|
'
)
)
return
hash_func
.
hexdigest
()
@staticmethod
...
...
@@ -317,7 +317,6 @@ class SafeSessionMiddleware(SessionMiddleware):
Step 4. Delete the cookie, if it
'
s marked for deletion.
"""
response
=
super
(
SafeSessionMiddleware
,
self
).
process_response
(
request
,
response
)
# Step 1
if
not
_is_cookie_marked_for_deletion
(
request
)
and
_is_cookie_present
(
response
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment