Sanitize theme path items
- Sanitize theme style/color/scheme path items
This commit is contained in:
parent
6aac84dc8e
commit
b529c03a20
9 changed files with 65 additions and 50 deletions
|
@ -22,6 +22,8 @@ if (empty($style)) {
|
|||
$stylecss = '';
|
||||
$modified = '';
|
||||
|
||||
$style = \Friendica\Util\Strings::sanitizeFilePathItem($style);
|
||||
|
||||
foreach (['style', $style] as $file) {
|
||||
$stylecssfile = $THEMEPATH . DIRECTORY_SEPARATOR . $file .'.css';
|
||||
if (file_exists($stylecssfile)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue