Skip to content

Commit 1e7626f

Browse files
committed
minor check in combine.php
1 parent ff755f6 commit 1e7626f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: oc-content/themes/modern/combine.php

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
$type = $_GET['type'];
3232
$elements = explode(',', $_GET['files']);
3333

34+
if( !in_array($type, array('css', 'js')) ) {
35+
header ("HTTP/1.0 403 Forbidden") ;
36+
exit ;
37+
}
38+
3439
// Determine last modification date of the files
3540
$lastmodified = 0;
3641
while( list(,$element) = each($elements) ) {

Diff for: oc-includes/osclass/gui/combine.php

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
$type = $_GET['type'];
3232
$elements = explode(',', $_GET['files']);
3333

34+
if( !in_array($type, array('css', 'js')) ) {
35+
header ("HTTP/1.0 403 Forbidden") ;
36+
exit ;
37+
}
38+
3439
// Determine last modification date of the files
3540
$lastmodified = 0;
3641
while( list(,$element) = each($elements) ) {

0 commit comments

Comments
 (0)