Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
e11f41eb
Commit
e11f41eb
authored
Jun 12, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1640 from tomchristie/escape-login-logout-paths
Version 2.3.14
parents
3dcc6585
82659873
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
21 deletions
+25
-21
docs/topics/release-notes.md
+22
-18
rest_framework/__init__.py
+1
-1
rest_framework/templatetags/rest_framework.py
+2
-2
No files found.
docs/topics/release-notes.md
View file @
e11f41eb
...
...
@@ -40,24 +40,28 @@ You can determine your currently installed version using `pip freeze`:
## 2.3.x series
### 2.3.x
*
*Date
**
:
April 2014
*
Fix nested serializers linked through a backward foreign key relation
*
Fix bad links for the `BrowsableAPIRenderer` with `YAMLRenderer`
*
Add `UnicodeYAMLRenderer` that extends `YAMLRenderer` with unicode
*
Fix `parse_header` argument convertion
*
Fix mediatype detection under Python3
*
Web browseable API now offers blank option on dropdown when the field is not required
*
`
APIException` representation improved for logging purposes
*
Allow source="*" within nested serializers
*
Better support for custom oauth2 provider backends
*
Fix field validation if it's optional and has no value
*
Add `SEARCH_PARAM` and `ORDERING_PARAM`
*
Fix `APIRequestFactory` to support arguments within the url string for GET
*
Allow three transport modes for access tokens when accessing a protected resource
*
Fix `Request`'s `QueryDict` encoding
### 2.3.14
*
*Date
**
:
12th June 2014
*
*
*Security
fix**
:
Escape request path when it is include as part of the login and logout links in the browsable API.
*
`
help_text` and `verbose_name` automatically set for related fields on `ModelSerializer`.
*
Fix nested serializers linked through a backward foreign key relation.
*
Fix bad links for the `BrowsableAPIRenderer` with `YAMLRenderer`.
*
Add `UnicodeYAMLRenderer` that extends `YAMLRenderer` with unicode.
*
Fix `parse_header` argument convertion.
*
Fix mediatype detection under Python 3.
*
Web browseable API now offers blank option on dropdown when the field is not required.
*
`
APIException` representation improved for logging purposes.
*
Allow source="*" within nested serializers.
*
Better support for custom oauth2 provider backends.
*
Fix field validation if it's optional and has no value.
*
Add `SEARCH_PARAM` and `ORDERING_PARAM`.
*
Fix `APIRequestFactory` to support arguments within the url string for GET.
*
Allow three transport modes for access tokens when accessing a protected resource.
*
Fix `QueryDict` encoding on request objects.
*
Ensure throttle keys do not contain spaces, as those are invalid if using `memcached`.
*
Support `blank_display_value` on `ChoiceField`.
### 2.3.13
...
...
rest_framework/__init__.py
View file @
e11f41eb
...
...
@@ -8,7 +8,7 @@ ______ _____ _____ _____ __ _
"""
__title__
=
'Django REST framework'
__version__
=
'2.3.1
3
'
__version__
=
'2.3.1
4
'
__author__
=
'Tom Christie'
__license__
=
'BSD 2-Clause'
__copyright__
=
'Copyright 2011-2014 Tom Christie'
...
...
rest_framework/templatetags/rest_framework.py
View file @
e11f41eb
...
...
@@ -122,7 +122,7 @@ def optional_login(request):
except
NoReverseMatch
:
return
''
snippet
=
"<a href='
%
s?next=
%
s'>Log in</a>"
%
(
login_url
,
request
.
path
)
snippet
=
"<a href='
%
s?next=
%
s'>Log in</a>"
%
(
login_url
,
escape
(
request
.
path
)
)
return
snippet
...
...
@@ -136,7 +136,7 @@ def optional_logout(request):
except
NoReverseMatch
:
return
''
snippet
=
"<a href='
%
s?next=
%
s'>Log out</a>"
%
(
logout_url
,
request
.
path
)
snippet
=
"<a href='
%
s?next=
%
s'>Log out</a>"
%
(
logout_url
,
escape
(
request
.
path
)
)
return
snippet
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment