mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #18456 -- Added path escaping to HttpRequest.get_full_path().
This commit is contained in:
parent
d3db878e4b
commit
c548c8d0d1
6 changed files with 57 additions and 4 deletions
|
@ -298,6 +298,13 @@ The functions defined in this module share the following properties:
|
|||
|
||||
Returns an ASCII string containing the encoded result.
|
||||
|
||||
.. function:: escape_uri_path(path)
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
Escapes the unsafe characters from the path portion of a Uniform Resource
|
||||
Identifier (URI).
|
||||
|
||||
``django.utils.feedgenerator``
|
||||
==============================
|
||||
|
||||
|
|
|
@ -381,6 +381,10 @@ Requests and Responses
|
|||
* ``WSGIRequestHandler`` now follows RFC in converting URI to IRI, using
|
||||
``uri_to_iri()``.
|
||||
|
||||
* The :meth:`HttpRequest.get_full_path()
|
||||
<django.http.HttpRequest.get_full_path>` method now escapes unsafe characters
|
||||
from the path portion of a Uniform Resource Identifier (URI) properly.
|
||||
|
||||
Tests
|
||||
^^^^^
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue