Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix: security #8829
  • Loading branch information
fmancardi committed Dec 30, 2019
1 parent bc4ef6c commit bcf7b97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/requirements/reqSpecCompareRevisions.php
Expand Up @@ -229,14 +229,15 @@ function init_args()


$args = new stdClass();
$args->req_spec_id = isset($_REQUEST['req_spec_id']) ? $_REQUEST['req_spec_id'] : 0;
$args->req_spec_id = isset($_REQUEST['req_spec_id']) ? intval($_REQUEST['req_spec_id']) : 0;
$args->doCompare = isset($_REQUEST['doCompare']) ? true : false;
$args->left_item_id = isset($_REQUEST['left_item_id']) ? intval($_REQUEST['left_item_id']) : -1;
$args->right_item_id = isset($_REQUEST['right_item_id']) ? intval($_REQUEST['right_item_id']) : -1;
$args->tproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
$args->tproject_id = isset($_SESSION['testprojectID']) ? intval($_SESSION['testprojectID']) : 0;
$args->useDaisyDiff = (isset($_REQUEST['diff_method']) && ($_REQUEST['diff_method'] == 'htmlCompare')) ? 1 : 0;



$diffEngineCfg = config_get("diffEngine");
$args->context = null;
if( !isset($_REQUEST['context_show_all']))
Expand Down

0 comments on commit bcf7b97

Please sign in to comment.