Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
8dafd04c
Kaydet (Commit)
8dafd04c
authored
Tem 07, 2012
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #17257 - Removed outdated comment in syndication view
Thanks krzysiumed for the patch.
üst
8855f938
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
views.py
django/contrib/syndication/views.py
+1
-2
No files found.
django/contrib/syndication/views.py
Dosyayı görüntüle @
8dafd04c
...
@@ -10,6 +10,7 @@ from django.utils.encoding import force_unicode, iri_to_uri, smart_unicode
...
@@ -10,6 +10,7 @@ from django.utils.encoding import force_unicode, iri_to_uri, smart_unicode
from
django.utils.html
import
escape
from
django.utils.html
import
escape
from
django.utils.timezone
import
is_naive
from
django.utils.timezone
import
is_naive
def
add_domain
(
domain
,
url
,
secure
=
False
):
def
add_domain
(
domain
,
url
,
secure
=
False
):
protocol
=
'https'
if
secure
else
'http'
protocol
=
'https'
if
secure
else
'http'
if
url
.
startswith
(
'//'
):
if
url
.
startswith
(
'//'
):
...
@@ -18,8 +19,6 @@ def add_domain(domain, url, secure=False):
...
@@ -18,8 +19,6 @@ def add_domain(domain, url, secure=False):
elif
not
(
url
.
startswith
(
'http://'
)
elif
not
(
url
.
startswith
(
'http://'
)
or
url
.
startswith
(
'https://'
)
or
url
.
startswith
(
'https://'
)
or
url
.
startswith
(
'mailto:'
)):
or
url
.
startswith
(
'mailto:'
)):
# 'url' must already be ASCII and URL-quoted, so no need for encoding
# conversions here.
url
=
iri_to_uri
(
'
%
s://
%
s
%
s'
%
(
protocol
,
domain
,
url
))
url
=
iri_to_uri
(
'
%
s://
%
s
%
s'
%
(
protocol
,
domain
,
url
))
return
url
return
url
...
...
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