Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35168 fix yui combo path disclosure

  • Loading branch information...
commit 58520c062df411301cbc2406df95c70ec006599a 1 parent 9815783
@skodak skodak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  theme/yui_combo.php
View
3  theme/yui_combo.php
@@ -109,7 +109,8 @@
$contentfile = "$CFG->libdir/yui/$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);
Please sign in to comment.
Something went wrong with that request. Please try again.