Skip to content

Commit

Permalink
Execute clickjacking prevention code only when framed
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Dec 15, 2017
1 parent c0959bd commit 604f84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/js/app.js
Expand Up @@ -177,7 +177,7 @@ function rcube_webmail()
this.gui_objects[n] = rcube_find_object(this.gui_objects[n]);

// clickjacking protection
if (n = this.env.x_frame_options) {
if ((n = this.env.x_frame_options) && self !== top) {
try {
// bust frame if not allowed
if (n.toLowerCase() == 'deny' && top.location.href != self.location.href)
Expand Down

0 comments on commit 604f84e

Please sign in to comment.