Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

fix "headers already sent" messages in output - Revo 2.3.1 #11

Merged
merged 2 commits into from
Dec 11, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion core/components/console/processors/exec.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ public function process() {
$code = $this->getProperty('code');
$_SESSION['Console']['code'] = $code;
$code = preg_replace('/^ *(<\?php|<\?)/mi', '', $code);
return eval($code);
ob_start();
eval($code);
$output = ob_get_contents();
ob_end_clean();
return ($output);
}
}

Expand Down