From a2bdf3401754815e45b8be5199c0db09eceefffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Sat, 1 Sep 2012 12:35:31 +0200 Subject: [PATCH] MDL-35168 fix yui combo path disclosure --- theme/yui_combo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theme/yui_combo.php b/theme/yui_combo.php index 2fc010815d8..bd19b5039cc 100644 --- a/theme/yui_combo.php +++ b/theme/yui_combo.php @@ -115,7 +115,8 @@ foreach ($parts as $part) { $contentfile = "$CFG->libdir/yuilib/$part"; } if (!file_exists($contentfile) or !is_file($contentfile)) { - $content .= "\n// Combo resource $part ($contentfile) not found!\n"; + $location = '$CFG->dirroot'.preg_replace('/^'.preg_quote($CFG->dirroot, '/').'/', '', $contentfile); + $content .= "\n// Combo resource $part ($location) not found!\n"; continue; } $filecontent = file_get_contents($contentfile);