Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor check in combine.php

  • Loading branch information...
commit 1e7626f4e1a26371480989c0b937f107ea9a6d4b 1 parent ff755f6
@juanramon juanramon authored
View
5 oc-content/themes/modern/combine.php
@@ -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) ) {
View
5 oc-includes/osclass/gui/combine.php
@@ -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) ) {
Please sign in to comment.
Something went wrong with that request. Please try again.