Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tv_panel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hermod
tv_panel
Commits
eebe5532
Commit
eebe5532
authored
7 years ago
by
Aymeric Bernard
Browse files
Options
Downloads
Patches
Plain Diff
Use encodeURI to avoid attack in image url
parent
2dc86947
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/src/Row.js
+2
-2
2 additions, 2 deletions
front/src/Row.js
with
2 additions
and
2 deletions
front/src/Row.js
+
2
−
2
View file @
eebe5532
...
@@ -17,14 +17,14 @@ const PureImageRow = ({ row }) => {
...
@@ -17,14 +17,14 @@ const PureImageRow = ({ row }) => {
:
{
height
:
'
calc(2 * var(--rowHeight))
'
};
:
{
height
:
'
calc(2 * var(--rowHeight))
'
};
return
(
return
(
<
div
className
=
"
bloc image-bloc
"
style
=
{
style
}
>
<
div
className
=
"
bloc image-bloc
"
style
=
{
style
}
>
<
img
src
=
{
row
.
image
}
alt
=
""
/>
<
img
src
=
{
encodeURI
(
row
.
image
)
}
alt
=
""
/>
<
/div
>
<
/div
>
);
);
};
};
const
TextAndImageRow
=
({
row
})
=>
(
const
TextAndImageRow
=
({
row
})
=>
(
<
div
className
=
"
bloc image-text-bloc
"
>
<
div
className
=
"
bloc image-text-bloc
"
>
<
img
className
=
"
row-icon
"
src
=
{
row
.
image
}
alt
=
""
/>
<
img
className
=
"
row-icon
"
src
=
{
encodeURI
(
row
.
image
)
}
alt
=
""
/>
<
div
className
=
"
text-section
"
>
{
row
.
text
.
map
(
element
=>
<
TextElement
element
=
{
element
}
/>
)
}</
div
>
<
div
className
=
"
text-section
"
>
{
row
.
text
.
map
(
element
=>
<
TextElement
element
=
{
element
}
/>
)
}</
div
>
<
/div
>
<
/div
>
);
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment