Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pablo Rauzy
cigala
Commits
1f632e8b
Commit
1f632e8b
authored
Jul 03, 2020
by
Pablo Rauzy
Browse files
missing strip_tags
parent
f0645ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
root/cigala.php
View file @
1f632e8b
...
...
@@ -397,7 +397,7 @@ function render ($file, $mode='edit', $entry_dt='NEW') {
link_list
:
[
<?php
$target
=
array_filter
(
$pages
,
function
(
$p
)
{
return
!
in_array
(
$p
[
'status'
],
array
(
'lnk'
,
'del'
,
'newdel'
));
});
foreach
(
$target
as
$p
)
:
?>
{
title
:
'
<?php
echo
addslashes
(
htmlspecialchars_decode
(
$groups
[
$p
[
'grp'
]][
'name'
]
.
' / '
.
$p
[
'title'
],
ENT_HTML5
|
ENT_QUOTES
));
?>
'
,
value
:
'
<?php
echo
$relroot
,
addslashes
(
preg_replace
(
'/\/?index\.html$/'
,
'/'
,
$p
[
'file'
]));
?>
'
},
{
title
:
'
<?php
echo
addslashes
(
htmlspecialchars_decode
(
strip_tags
(
$groups
[
$p
[
'grp'
]][
'name'
]
)
.
' / '
.
$p
[
'title'
],
ENT_HTML5
|
ENT_QUOTES
));
?>
'
,
value
:
'
<?php
echo
$relroot
,
addslashes
(
preg_replace
(
'/\/?index\.html$/'
,
'/'
,
$p
[
'file'
]));
?>
'
},
<?php
endforeach
;
?>
{
title
:
'
Files
'
,
menu
:
[
<?php
$files
=
list_files
(
$config
[
'fileext'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment