Handle potentially invalid messages by removing new lines

This commit is contained in:
Nathan Gray 2012-09-26 16:59:35 +00:00
parent d986ef7a6d
commit 1f52784583

View File

@ -119,7 +119,7 @@
$this->message .= lang('%1 records processed', $count);
// Refresh opening window
if(!$content['dry-run']) $GLOBALS['egw']->js->set_onload("window.opener.egw_refresh('{$this->message}','$appname');");
if(!$content['dry-run']) $GLOBALS['egw']->js->set_onload("window.opener.egw_refresh('".preg_replace('/\n+/','',strip_tags($this->message))."','$appname');");
$total_processed = 0;
foreach($plugin->get_results() as $action => $a_count) {
$this->message .= "<br />\n" . lang($action) . ": $a_count";