Skip to content

Commit

Permalink
Disallow absolute URLs in frames anchor handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Sep 18, 2013
1 parent 204daf9 commit 98f538a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/default/fulldoc/html/frames.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
window.onload = function() {
var match = unescape(window.location.hash).match(/^#!(.+)/);
var name = match ? match[1] : '<%= url_for_main %>';
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
document.writeln('<frameset cols="20%,*">' +
'<frame name="list" src="<%= url_for_list('class') %>" />' +
'<frame name="main" src="' + escape(name) + '" />' +
Expand Down

0 comments on commit 98f538a

Please sign in to comment.