File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ function removeLockFile() {
48
48
if (!isset ($ _GET ['t ' ]) || $ _GET ['t ' ] !== ACCESS_TOKEN ) {
49
49
header ($ _SERVER ['SERVER_PROTOCOL ' ] . ' 403 Forbidden ' , true , 403 );
50
50
removeLockFile ();
51
- echo ' < h2>Access Denied</h2>' ;
52
- echo ' <!-- ' . str_repeat (" " , 512 ) . ' --> ' ; // prevent "friendly" browser error page
51
+ echo " <html> \n <body> \n < h2>Access Denied</h2>\n </body> \n </html> \n" ;
52
+ echo " <!-- \n ~~~~~~~~~~~~~ Prevent browser friendly error page ~~~~~~~~~~~~~~ \n" . str_repeat (str_repeat ( " ~ " , 64 ) . "\n" , 8 ) . " --> \n" ;
53
53
die ();
54
54
}
55
55
if (count ($ err ) || ACCESS_TOKEN === '' || REMOTE_REPOSITORY === '' || BRANCH === '' || GIT_DIR === '' || TARGET_DIR === '' ) {
56
56
header ($ _SERVER ['SERVER_PROTOCOL ' ] . ' 403 Forbidden ' , true , 403 );
57
57
removeLockFile ();
58
- echo "<h2>Configuration Error</h2> \n<pre> \n" . implode ("\n" , $ err ) . "\n</pre> " ;
59
- echo ' <!-- ' . str_repeat (" " , 512 ) . ' --> ' ; // prevent "friendly" browser error page
58
+ echo "<html> \n <body> \n < h2>Configuration Error</h2> \n<pre> \n" . implode ("\n" , $ err ) . "\n</pre> \n </body> \n </html> \n " ;
59
+ echo " <!-- \n ~~~~~~~~~~~~~ Prevent browser friendly error page ~~~~~~~~~~~~~~ \n" . str_repeat (str_repeat ( " ~ " , 64 ) . "\n" , 8 ) . " --> \n" ;
60
60
die ();
61
61
}
62
62
?>
You can’t perform that action at this time.
0 commit comments