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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% extends "frame.tmpl" %} 1 {% extends "frame.tmpl" %}
2 2
3 {% block body %} 3 {% block body %}
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function frame_url(parent_location) 5 function frame_url(parent_location)
6 { 6 {
7 return parent_location.hash.substring(1); 7 return parent_location.origin + parent_location.hash.substring(1);
8 } 8 }
9 </script> 9 </script>
10 {% endblock %} 10 {% endblock %}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld