Commit cc8f655d authored by Kevin Atkinson's avatar Kevin Atkinson

Closed PHP code block in PHP pages not meant to be included by other

PHP pages.  For PHP pages included by others it is best to leave them
unclosed since any whitespace after the "?>" will count as output
and thus prevent header() from being able to change the HTTP header.
parent e7b92d7b
......@@ -55,3 +55,4 @@ echo "-----BEGIN CERTIFICATE-----\n";
echo $cert;
echo "-----END CERTIFICATE-----\n";
?>
......@@ -30,3 +30,5 @@ if (isset($idx)) {
else {
header("Location: $WIKIDOCURL/KnowledgeBase", TRUE, 301);
}
?>
......@@ -313,3 +313,5 @@ function BEGINEXP($nsref)
$url .= "&nsref=$nsref";
header("Location: $url");
}
?>
......@@ -306,3 +306,5 @@ unlink($manifest);
rmdir($randdir);
return;
?>
......@@ -131,3 +131,5 @@ DBQueryFatal("update nodes set reserved_pid='$pid' ".
"where node_id='$node_id'");
header("Location: " . CreateURL("shownode", $node));
?>
......@@ -144,3 +144,4 @@ sajax_handle_client_request();
#
# We return to the including script ...
#
......@@ -50,3 +50,5 @@ for ($i = 0; $i < count($output); $i++) {
echo "$output[$i]\n";
}
echo "\n";
?>
......@@ -257,3 +257,5 @@ while (list ($index, $dbrow) = each ($eventlist)) {
# Zap back to this page.
header("Location: ". CreateURL("template_editevents.php", $template));
?>
......@@ -466,3 +466,5 @@ if (isset($referrer)) {
else {
header("Location: ". CreateURL("template_show", $template));
}
?>
......@@ -70,3 +70,5 @@ if ($retval) {
SUEXECERROR(SUEXEC_ACTION_CONTINUE);
}
SPITSTATUS($retval);
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment