From: moodler Date: Mon, 10 May 2004 16:10:55 +0000 (+0000) Subject: Handle resource names with slashes better X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=59bb9e22ff2279723c91b0c7bfc116d9c7418db3;p=moodle.git Handle resource names with slashes better --- diff --git a/mod/resource/details.php b/mod/resource/details.php index 618f4b9de9..3a05c58619 100644 --- a/mod/resource/details.php +++ b/mod/resource/details.php @@ -26,6 +26,8 @@ $strexample = get_string("example", "resource"); $strresources = get_string("modulenameplural", "resource"); + $form->name = s($form->name); // remove slashes + print_header("$course->shortname: $strediting", "$course->shortname: $strediting", "wwwroot/course/view.php?id=$course->id\">$course->shortname -> id\">$strresources -> $form->name ($stredit)");