mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 11:53:57 +01:00
Handle potentially invalid messages by removing new lines
This commit is contained in:
parent
d986ef7a6d
commit
1f52784583
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user