Skip to content

Commit acc2c59

Browse files
committed
Updated a bunch of links from http: to https: based on a patch from lars@netapp.com.
- Legacy-Id: 9556
1 parent 0d08fff commit acc2c59

20 files changed

Lines changed: 47 additions & 47 deletions

File tree

ietf/community/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _atom_view(request, clist, significant=False):
164164
notifications = notifications.filter(listnotification__significant=True)
165165

166166
host = request.get_host()
167-
feed_url = 'http://%s%s' % (host, request.get_full_path())
167+
feed_url = 'https://%s%s' % (host, request.get_full_path())
168168
feed_id = uuid.uuid5(uuid.NAMESPACE_URL, feed_url.encode('utf-8'))
169169
title = '%s RSS Feed' % clist.long_name()
170170
if significant:

ietf/doc/redirect_drafts_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
(r'^(?P<name>[^/]+)/(related/)?$', RedirectView.as_view(url='/doc/%(name)s/')),
1818
(r'^wgid/(?P<id>\d+)/$', lambda request, id: HttpResponsePermanentRedirect("/wg/%s/" % get_object_or_404(Group, id=id).acronym)),
1919
(r'^wg/(?P<acronym>[^/]+)/$', RedirectView.as_view(url='/wg/%(acronym)s/')),
20-
(r'^all_id(?:_txt)?.html$', RedirectView.as_view(url='http://www.ietf.org/id/all_id.txt')),
20+
(r'^all_id(?:_txt)?.html$', RedirectView.as_view(url='https://www.ietf.org/id/all_id.txt')),
2121
)

ietf/doc/redirect_idtracker_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
urlpatterns = patterns('',
55
(r'^help/(?:sub)?state/(?:\d+/)?$', RedirectView.as_view(url='/doc/help/state/draft-iesg/')),
6-
(r'^help/evaluation/$', RedirectView.as_view(url='http://www.ietf.org/iesg/voting-procedures.html')),
6+
(r'^help/evaluation/$', RedirectView.as_view(url='https://www.ietf.org/iesg/voting-procedures.html')),
77
(r'^status/$', RedirectView.as_view(url='/doc/iesg/')),
88
(r'^status/last-call/$', RedirectView.as_view(url='/doc/iesg/last-call/')),
99
(r'^rfc0*(?P<rfc_number>\d+)/$', RedirectView.as_view(url='/doc/rfc%(rfc_number)s/')),

ietf/doc/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,15 @@ def add_links_in_new_revision_events(doc, events, diff_revisions):
239239
full_url = diff_url = diff_urls[(e.doc.name, e.rev)]
240240

241241
if doc.type_id in "draft": # work around special diff url for drafts
242-
full_url = "http://tools.ietf.org/id/" + diff_url + ".txt"
242+
full_url = "https://tools.ietf.org/id/" + diff_url + ".txt"
243243

244244
# build links
245245
links = r'<a href="%s">\1</a>' % full_url
246246
if prev:
247247
links += ""
248248

249249
if prev != None:
250-
links += ' (<a href="http:%s?url1=%s&url2=%s">diff from previous</a>)' % (settings.RFCDIFF_PREFIX, urllib.quote(prev, safe="~"), urllib.quote(diff_url, safe="~"))
250+
links += ' (<a href="https:%s?url1=%s&url2=%s">diff from previous</a>)' % (settings.RFCDIFF_PREFIX, urllib.quote(prev, safe="~"), urllib.quote(diff_url, safe="~"))
251251

252252
# replace the bold filename part
253253
e.desc = re.sub(r"<b>(.+-[0-9][0-9].txt)</b>", links, e.desc)

ietf/doc/views_doc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def document_main(request, name, rev=None):
179179
possible_types = ["txt", "pdf", "ps"]
180180
found_types = [t for t in possible_types if os.path.exists(base_path + t)]
181181

182-
base = "http://www.rfc-editor.org/rfc/"
182+
base = "https://www.rfc-editor.org/rfc/"
183183

184184
file_urls = []
185185
for t in found_types:
@@ -190,7 +190,7 @@ def document_main(request, name, rev=None):
190190
file_urls.append(("pdf", base + "pdfrfc/" + name + ".txt.pdf"))
191191

192192
if "txt" in found_types:
193-
file_urls.append(("html", "http://tools.ietf.org/html/" + name))
193+
file_urls.append(("html", "https://tools.ietf.org/html/" + name))
194194

195195
if not found_types:
196196
content = "This RFC is not currently available online."
@@ -209,10 +209,10 @@ def document_main(request, name, rev=None):
209209
possible_types = ["pdf", "xml", "ps"]
210210
found_types = ["txt"] + [t for t in possible_types if os.path.exists(base_path + t)]
211211

212-
tools_base = "http://tools.ietf.org/"
212+
tools_base = "https://tools.ietf.org/"
213213

214214
if doc.get_state_slug() == "active":
215-
base = "http://www.ietf.org/id/"
215+
base = "https://www.ietf.org/id/"
216216
else:
217217
base = tools_base + "id/"
218218

ietf/iesg/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from django.views.generic import RedirectView
3737

3838
urlpatterns = patterns('',
39-
(r'^telechat/.*$', RedirectView.as_view(url='http://www.ietf.org/iesg/minutes.html')),
39+
(r'^telechat/.*$', RedirectView.as_view(url='https://www.ietf.org/iesg/minutes.html')),
4040
(r'^ann/(?:ind|new|prev)/$', RedirectView.as_view(url="/iesg/decisions/", permanent=True )),
4141
(r'^telechatdates/$', RedirectView.as_view(url='/admin/iesg/telechatdate/')),
4242

ietf/liaisons/mails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def notify_pending_by_email(request, liaison):
3030

3131
# Broken: this does not find the list of approvers for the sending body
3232
# For now, we are sending to statements@ietf.org so the Secretariat can nudge
33-
# Bug 880: http://trac.tools.ietf.org/tools/ietfdb/ticket/880
33+
# Bug 880: https://trac.tools.ietf.org/tools/ietfdb/ticket/880
3434
#
3535
# from ietf.liaisons.utils import IETFHM
3636
#

ietf/liaisons/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
url(r'^help/fields/$', TemplateView.as_view(template_name='liaisons/field_help.html'), name="liaisons_field_help"),
99
(r'^help/from_ietf/$', TemplateView.as_view(template_name='liaisons/guide_from_ietf.html')),
1010
(r'^help/to_ietf/$', TemplateView.as_view(template_name='liaisons/guide_to_ietf.html')),
11-
(r'^managers/$', RedirectView.as_view(url='http://www.ietf.org/liaison/managers.html')),
11+
(r'^managers/$', RedirectView.as_view(url='https://www.ietf.org/liaison/managers.html')),
1212
)
1313

1414
urlpatterns += patterns('ietf.liaisons.views',

ietf/mailinglists/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
urlpatterns = patterns('',
77
(r'^wg/$', 'ietf.mailinglists.views.groups'),
8-
(r'^nonwg/$', RedirectView.as_view(url='http://www.ietf.org/list/nonwg.html')),
9-
(r'^nonwg/update/$', RedirectView.as_view(url='http://www.ietf.org/list/nonwg.html')),
10-
(r'^request/$', RedirectView.as_view(url='http://www.ietf.org/list/request.html')),
8+
(r'^nonwg/$', RedirectView.as_view(url='https://www.ietf.org/list/nonwg.html')),
9+
(r'^nonwg/update/$', RedirectView.as_view(url='https://www.ietf.org/list/nonwg.html')),
10+
(r'^request/$', RedirectView.as_view(url='https://www.ietf.org/list/request.html')),
1111
)

ietf/meeting/feeds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LatestMeetingMaterialFeed(Feed):
1111
feed_type = Atom1Feed
1212
link = "/meeting/"
1313
language = "en"
14-
base_url = "http://www3.ietf.org/proceedings/"
14+
base_url = "https://www.ietf.org/proceedings/"
1515

1616
def items(self):
1717
objs = []

0 commit comments

Comments
 (0)