diff --git a/pts-core/static/dynamic-result-viewer/index.php b/pts-core/static/dynamic-result-viewer/index.php index 56c6a05994..df674ee740 100644 --- a/pts-core/static/dynamic-result-viewer/index.php +++ b/pts-core/static/dynamic-result-viewer/index.php @@ -42,6 +42,12 @@ if(isset($_REQUEST['checkbox_compare_results'])) { + foreach($_REQUEST['checkbox_compare_results'] as &$inp) + { + // Remove any possible garbage since the result identifiers should just have alpha num and dashes anyhow... + $inp = preg_replace('/[^\w-]/', '', $inp); + } + echo ''; exit; }