Skip to content

Commit cc152db

Browse files
committed
Semicolon moved, githubAuthTokenSet if value set
CSRF value ends with a ; as per all other settings (moved from other line) If we have a githubAuthToken value (ie, set in our config settings file), update top.ICEcoder.githubAuthTokenSet to true so we don't ask user for it to be set in our session
1 parent 6fedd41 commit cc152db

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

index.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,11 @@
8080
"top.ICEcoder.bugFilePaths = ['".implode("','",$ICEcoder["bugFilePaths"])."'];".
8181
"top.ICEcoder.bugFileCheckTimer = ".$ICEcoder["bugFileCheckTimer"].";".
8282
"top.ICEcoder.bugFileMaxLines = ".$ICEcoder["bugFileMaxLines"].";".
83-
"top.ICEcoder.csrf = '".$_SESSION["csrf"]."'";
84-
?>;ICEcoder.init()<?php echo $updateMsg.$onLoadExtras;?>;top.ICEcoder.content.style.visibility='visible';top.ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = 'processes/on-load.php';" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="parent.ICEcoder.resetKeys(event);" onBlur="parent.ICEcoder.resetKeys(event);">
83+
if($ICEcoder["githubAuthToken"] != "") {
84+
echo "top.ICEcoder.githubAuthTokenSet = true;";
85+
}
86+
"top.ICEcoder.csrf = '".$_SESSION["csrf"]."';";
87+
?>ICEcoder.init()<?php echo $updateMsg.$onLoadExtras;?>;top.ICEcoder.content.style.visibility='visible';top.ICEcoder.filesFrame.contentWindow.frames['processControl'].location.href = 'processes/on-load.php';" onResize="ICEcoder.setLayout()" onKeyDown="return ICEcoder.interceptKeys('coder',event);" onKeyUp="parent.ICEcoder.resetKeys(event);" onBlur="parent.ICEcoder.resetKeys(event);">
8588

8689
<div id="blackMask" class="blackMask" onClick="if (!ICEcoder.overPopup) {ICEcoder.showHide('hide',this)}" onContextMenu="return false">
8790
<div class="popupVCenter">

0 commit comments

Comments
 (0)