diff --git a/admin/langdoc.php b/admin/langdoc.php index 54d88f6788e5c..779441b3dd529 100755 --- a/admin/langdoc.php +++ b/admin/langdoc.php @@ -4,8 +4,10 @@ This script enables Moodle translators to edit /docs and /help language files directly via WWW interface. -Author: mudrd8mz@it.pedf.cuni.cz (http://moodle.cz) +Author: mudrd8mz@uxit.pedf.cuni.cz (http://moodle.cz) Based on: lang.php in 1.4.3+ release +Thanks: Jaime Villate for important bug fixing, koen roggemans for his job and all moodlers + for intensive testing of this my first contribution */ // @@ -21,11 +23,6 @@ require_once("../config.php"); - // - // SECURITY NOTE - // Option PARAM_PATH prevents requesting langdoc.php with eg. currentfile=../../config.php - // which could give potential hacker direct access to the source of config.php - // $currentfile = optional_param('currentfile', 'docs/README.txt', PARAM_PATH); require_login(); @@ -163,10 +160,7 @@ echo "\n"; @@ -184,10 +178,7 @@ echo "
\n"; echo "\n"; link_to_popup_window("/lang/en/$currentfile", "popup", get_string("preview")); echo "