貼文的作者是 Martin Dougiamas

Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Plugin developers的相片 Testers的相片
It looks like $COURSE is not being set properly for that script (or it is actually somewhere in the top front page course).

The PHP/Moodle script should be doing something like this at the top to authenticate the user properly and set the $COURSE global as well:

require_course_login($course, true, $cm);

(based on data gained from the parameters to the script)
評比平均分數:Useful (1)
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Plugin developers的相片 Testers的相片
Tim wrote a cool new regexp that seems to cover an even wider range of cases, I've installed it.

$text = preg_replace('#(?:MDL|MDLSITE|CONTRIB)-\d+\b(?![^\'"<>]*[\'"][^>]*>)(?![^<]*)#',
'$0',
$text);


All we need now is a reliable method using nolink tags that all the filters can use! eg MDL-15555
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Plugin developers的相片 Testers的相片
In this case, I don't think netpublish has any problems at all.

But as you guessed the correct procedure would be to flag a security issue in the tracker, plus it would be nice to let the author know (if you know them).