This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
friendica
/
friendica
mirror of
https://github.com/friendica/friendica.git
Watch
1
Star
2
Fork
1
Code
Issues
Releases
49
Wiki
Activity
Browse Source
Escaping moved to template
https://github.com/friendica/friendica/pull/6147#pullrequestreview-176051481
pull/6147/head
Alexandre Alapetite
2 years ago
parent
e45d32d5a5
commit
4d092872a5
3 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/App.php
+1
-1
view/templates/head.tpl
+1
-1
view/theme/frio/templates/head.tpl
+ 1
- 1
src/App.php
View File
@ -116,7 +116,7 @@ class App
public
function
registerStylesheet
(
$path
)
{
$url
=
str_replace
(
$this
->
getBasePath
()
.
DIRECTORY_SEPARATOR
,
''
,
$path
);
$url
=
htmlspecialchars
(
$url
,
ENT_COMPAT
,
'UTF-8'
);
$this
->
stylesheets
[]
=
trim
(
$url
,
'/'
);
}
+ 1
- 1
view/templates/head.tpl
View File
@ -9,7 +9,7 @@
<link rel="stylesheet" href="view/asset/perfect-scrollbar/css/perfect-scrollbar.min.css" type="text/css" media="screen" />
{
{
foreach
$stylesheets
as
$stylesheetUrl
}
}
<link rel="stylesheet" href="
{
{
$stylesheetUrl
}
}
" type="text/css" media="screen" />
<link rel="stylesheet" href="
{
{
$stylesheetUrl
|
escape
:
"html"
:
"UTF-8"
}
}
" type="text/css" media="screen" />
{
{
/
foreach
}
}
<link rel="shortcut icon" href="
{
{
$shortcut_icon
}
}
" />
+ 1
- 1
view/theme/frio/templates/head.tpl
View File
@ -26,7 +26,7 @@
<link rel="stylesheet" href="view/theme/frio/font/open_sans/open-sans.css" type="text/css" media="screen"/>
{
{
foreach
$stylesheets
as
$stylesheetUrl
}
}
<link rel="stylesheet" href="
{
{
$stylesheetUrl
}
}
" type="text/css" media="screen" />
<link rel="stylesheet" href="
{
{
$stylesheetUrl
|
escape
:
"html"
:
"UTF-8"
}
}
" type="text/css" media="screen" />
{
{
/
foreach
}
}
{
{
*
own
css
files
*
}
}
Write
Preview
Loading…
Cancel
Save