Skip to content
Permalink
Browse files Browse the repository at this point in the history
minor check in combine.php
  • Loading branch information
juanramon committed Feb 1, 2012
1 parent ff755f6 commit 1e7626f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oc-content/themes/modern/combine.php
Expand Up @@ -31,6 +31,11 @@
$type = $_GET['type'];
$elements = explode(',', $_GET['files']);

if( !in_array($type, array('css', 'js')) ) {
header ("HTTP/1.0 403 Forbidden") ;
exit ;
}

// Determine last modification date of the files
$lastmodified = 0;
while( list(,$element) = each($elements) ) {
Expand Down
5 changes: 5 additions & 0 deletions oc-includes/osclass/gui/combine.php
Expand Up @@ -31,6 +31,11 @@
$type = $_GET['type'];
$elements = explode(',', $_GET['files']);

if( !in_array($type, array('css', 'js')) ) {
header ("HTTP/1.0 403 Forbidden") ;
exit ;
}

// Determine last modification date of the files
$lastmodified = 0;
while( list(,$element) = each($elements) ) {
Expand Down

0 comments on commit 1e7626f

Please sign in to comment.