projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e74ab33
)
fix self-service fallout from clickjacking fix, RT#39881
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 15 Jan 2016 23:46:32 +0000
(15:46 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 15 Jan 2016 23:46:32 +0000
(15:46 -0800)
FS/FS/Mason/Request.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Mason/Request.pm
b/FS/FS/Mason/Request.pm
index
b33efcc
..
0d9c6d4
100644
(file)
--- a/
FS/FS/Mason/Request.pm
+++ b/
FS/FS/Mason/Request.pm
@@
-65,9
+65,11
@@
sub freeside_setup {
if fileno(STDOUT) != 1;
}
if fileno(STDOUT) != 1;
}
- FS::Trace->log(' adding headers');
- #frame-ancestors not supported by all the major browsers yet
- $HTML::Mason::Commands::r->header_out( 'X-Frame-Options', 'SAMEORIGIN' );
+ if ( $HTML::Mason::Commands::r ) {
+ FS::Trace->log(' adding headers');
+ #frame-ancestors not supported by all the major browsers yet
+ $HTML::Mason::Commands::r->header_out( 'X-Frame-Options', 'SAMEORIGIN' );
+ }
if ( $filename =~ qr(/REST/\d+\.\d+/NoAuth/) ) {
if ( $filename =~ qr(/REST/\d+\.\d+/NoAuth/) ) {