General developer forum

Programming Error Message

 
Davo
Re: Programming Error Message
Core developersParticularly helpful MoodlersPlugin developers

I'm not quite sure what secret security information that error message reveals that any attacker couldn't find simply by looking at the code: https://github.com/moodle/moodle/blob/master/backup/backupfilesedit.php#L31

If you really must edit the error message (with the awareness that it will make no improvement at all to your site security and will make it harder to fix any problems that occur), then just use the language override feature (site admin > language > language customisation) to edit the 'missingparam' string in the errors.php.


 
Average of ratings: Useful (1)