2012-01-17 Ramon Novoa <rnovoa@artica.es>

* include/functions_netflow.php: Clean \r and \n from advanced
	  filters.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2012-01-17 15:37:50 +00:00
parent cff11f680b
commit 51ebd92b2b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-01-17 Ramon Novoa <rnovoa@artica.es>
* include/functions_netflow.php: Clean \r and \n from advanced
filters.
2012-01-17 Ramon Novoa <rnovoa@artica.es> 2012-01-17 Ramon Novoa <rnovoa@artica.es>
* include/functions_graph.php, include/functions_netflow.php, * include/functions_graph.php, include/functions_netflow.php,

View File

@ -449,7 +449,7 @@ function netflow_get_command ($filter) {
// Advanced filter // Advanced filter
$filter_args = ''; $filter_args = '';
if ($filter['advanced_filter'] != '') { if ($filter['advanced_filter'] != '') {
$filter_args = preg_replace('/"/','', io_safe_output ($filter['advanced_filter'])); $filter_args = preg_replace('/["\r\n]/','', io_safe_output ($filter['advanced_filter']));
$command .= ' "(' . $filter_args . ')"'; $command .= ' "(' . $filter_args . ')"';
return $command; return $command;
} }