Skip to content

Commit 9236449

Browse files
authored
N°9238 - Sanitize data_source_id query parameter in synchro_import script (#831)
1 parent ab8e7bd commit 9236449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synchro/synchro_import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function ChangeDateFormat($sProposedDate, $sFormat, $bDateOnly)
301301
//
302302
// Read parameters
303303
//
304-
$iDataSourceId = ReadMandatoryParam($oP, 'data_source_id', 'raw_data');
304+
$iDataSourceId = ReadMandatoryParam($oP, 'data_source_id', utils::ENUM_SANITIZATION_FILTER_INTEGER);
305305
$sSynchronize = ReadParam($oP, 'synchronize');
306306
$sSep = ReadParam($oP, 'separator', 'raw_data');
307307
$sQualifier = ReadParam($oP, 'qualifier', 'raw_data');

0 commit comments

Comments
 (0)