Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/sitekey_frame.tmpl

Issue 29329256: Issue 3122 - Restrict allowed URLs for the sitekey_frame (Closed)
Patch Set: Gone with Manvel's suggestion Created Nov. 19, 2015, 12:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/sitekey_frame.tmpl
diff --git a/templates/sitekey_frame.tmpl b/templates/sitekey_frame.tmpl
index c136b2ad2086070e81ff33f6584859f3a870fa98..ced464dfd0b1979564ef6e82f12940d4f989a0df 100644
--- a/templates/sitekey_frame.tmpl
+++ b/templates/sitekey_frame.tmpl
@@ -4,7 +4,7 @@
<script type="text/javascript">
function frame_url(parent_location)
{
- return parent_location.hash.substring(1);
+ return parent_location.origin + parent_location.hash.substring(1);
}
</script>
{% endblock %}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld