Skip to content

Commit

Permalink
no longer allow include statements in local.conf.php
Browse files Browse the repository at this point in the history
as discussed at #115
  • Loading branch information
splitbrain committed Jul 8, 2012
1 parent f4c788e commit 499add6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/config/settings/config.class.php
Expand Up @@ -156,7 +156,7 @@ function _read_config($file) {
}else{
$contents = '';
}
$pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$'.$this->_name.'|@include|$))/s';
$pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);(?=[^;]*(?:\$'.$this->_name.'|$))/s';
$matches=array();
preg_match_all($pattern,$contents,$matches,PREG_SET_ORDER);

Expand Down

0 comments on commit 499add6

Please sign in to comment.