Skip to content

Commit

Permalink
added validation for themename - see SC #101; merged from MOODLE_15_S…
Browse files Browse the repository at this point in the history
…TABLE
  • Loading branch information
skodak committed Jul 5, 2005
1 parent 4726393 commit ab25ce3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/weblib.php
Expand Up @@ -2013,6 +2013,8 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force

if (empty($themename)) {
$themename = current_theme(); // So we have something. Normally not needed.
} else {
$themename = clean_param($themename, PARAM_SAFEDIR);
}

if (!empty($forceconfig)) { // Page wants to use the config from this theme instead
Expand Down

0 comments on commit ab25ce3

Please sign in to comment.