Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mozilla/kuma
base: 5f4e39dc238578e2bad0aa5b2933cd8c27c76243
...
head fork: mozilla/kuma
compare: c0712951d6d8a134b9ad95a414fa369324fba110
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 0 deletions.
  1. +4 −0 apps/wiki/views.py
View
4 apps/wiki/views.py
@@ -1807,6 +1807,10 @@ def code_sample(request, document_slug, document_locale, sample_id):
full_address = (''.join(('http', ('', 's')[request.is_secure()], '://',
request.META.get('HTTP_HOST'), request.path)))
+ # HACK: Temporary looksee into Host: header for lmorchard
+ if request.user.is_authenticated() and 'lmorchard' == request.user.username:
+ return HttpResponse('FULL ADDRESS IS %s' % full_address)
+
if not re.search(constance.config.KUMA_WIKI_IFRAME_ALLOWED_HOSTS, full_address):
raise PermissionDenied

No commit comments for this range

Something went wrong with that request. Please try again.