]> git.mjollnir.org Git - moodle.git/commit
MDL-90 Introducing MOODLE_SANE_INPUT and MOODLE_SANE_OUTPUT to setup.php
authormartinlanghoff <martinlanghoff>
Wed, 27 Feb 2008 02:51:49 +0000 (02:51 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 27 Feb 2008 02:51:49 +0000 (02:51 +0000)
commit8f64ba04837a3993ea119402f3dedc77ae1d320e
treebc9902f68559e388d54e888756bd4b900ddd4154
parentc336b0b0237d6940fe6fd692acf7b7e39ae48127
MDL-90 Introducing MOODLE_SANE_INPUT and MOODLE_SANE_OUTPUT to setup.php

These two constants indicate that the Moodle core should not mangle
input (magic quotes of any kind verboten!) and should not spit odd stuff
in the output (displaydebug verboten!). Both are needed for WebDAV
support.

MOODLE_SANE_INPUT is tricky - it means that the codepaths _must_ use
$db->qstr() (or addslashes() - but that has its own problems).
lib/setup.php