summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspider@app2 <spiderr@bitweaver.org>2017-09-22 21:14:28 -0400
committerspider@app2 <spiderr@bitweaver.org>2017-09-22 21:14:28 -0400
commit2fa7b35c665fa6dec7854ba40889a73538f4090a (patch)
tree72c930675b344f7f1049cda32896f58c7c717d3d
parentbccb13134c9ab41616893c56c30750ec5aec4af5 (diff)
downloadwiki-2fa7b35c665fa6dec7854ba40889a73538f4090a.tar.gz
wiki-2fa7b35c665fa6dec7854ba40889a73538f4090a.tar.bz2
wiki-2fa7b35c665fa6dec7854ba40889a73538f4090a.zip
X-XSS-Protection: 0 for preview
-rw-r--r--edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/edit.php b/edit.php
index 1fde2e5..3a03fd5 100644
--- a/edit.php
+++ b/edit.php
@@ -201,6 +201,8 @@ if( isset( $_REQUEST['format_guid'] ) && !isset( $gContent->mInfo['format_guid']
}
if( isset( $_REQUEST["preview"] ) ) {
+ // Chrome does not like seeing the page source in the page itself.
+ header("X-XSS-Protection: 0");
$gBitSmarty->assign( 'preview',1 );
$gBitSmarty->assign( 'title',!empty( $_REQUEST["title"] ) ? $_REQUEST["title"]:$gContent->mPageName );