MDL-77718 editor_tiny: Restrict the revision to int for loaders

The revision should always be an int. I suspect this was missed during
debugging and not corrected.
This commit is contained in:
Andrew Nicols
2023-04-19 16:44:19 +00:00
committed by Jenkins
parent 5521d1d6e8
commit 59d42e1ed2
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -74,10 +74,10 @@ class loader {
}
[$rev, $filepath] = explode('/', $slashargument, 2);
$this->rev = min_clean_param($rev, 'RAW');
$this->rev = min_clean_param($rev, 'INT');
$this->filepath = min_clean_param($filepath, 'SAFEPATH');
} else {
$this->rev = min_optional_param('rev', 0, 'RAW');
$this->rev = min_optional_param('rev', 0, 'INT');
$this->filepath = min_optional_param('filepath', 'standard', 'SAFEPATH');
}