Skip to content

Commit

Permalink
fix include_once for JavaScript
Browse files Browse the repository at this point in the history
the second include was never removed, causing an endless loop.
  • Loading branch information
splitbrain committed Apr 9, 2014
1 parent 481343c commit 969df2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/exe/js.php
Expand Up @@ -166,7 +166,10 @@ function js_load($file){
// is it a include_once?
if($match[1]){
$base = utf8_basename($ifile);
if($loaded[$base]) continue;
if($loaded[$base]){
$data = str_replace($match[0], '' ,$data);
continue;
}
$loaded[$base] = true;
}

Expand Down

0 comments on commit 969df2f

Please sign in to comment.