mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-23184 CLEAN_PARAM explanation improved in unittests
This commit is contained in:
parent
45423ee26d
commit
fb59f2f126
@ -246,7 +246,8 @@ class moodlelib_test extends UnitTestCase {
|
||||
}
|
||||
|
||||
function test_clean_param_clean() {
|
||||
//TODO: param clean is an ugly hack, do not use in new code (skodak)
|
||||
// PARAM_CLEAN is an ugly hack, do not use in new code (skodak)
|
||||
// instead use more specific type, or submit sothing that can be verified properly
|
||||
$this->assertEqual(clean_param('xx<script>', PARAM_CLEAN), 'xx');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user