Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
cfd0140e
Commit
cfd0140e
authored
13 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
fix 2 potential xss problems
parent
3c182bdb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/templates/404.php
+1
-1
1 addition, 1 deletion
core/templates/404.php
files/templates/index.php
+1
-1
1 addition, 1 deletion
files/templates/index.php
files/templates/part.breadcrumb.php
+1
-1
1 addition, 1 deletion
files/templates/part.breadcrumb.php
with
3 additions
and
3 deletions
core/templates/404.php
+
1
−
1
View file @
cfd0140e
...
...
@@ -10,6 +10,6 @@ if(!isset($_)){//also provide standalone error page
<ul>
<li
class=
'error'
>
<?php
echo
$l
->
t
(
'Cloud not found'
);
?>
<br/>
<p
class=
'hint'
>
<?php
if
(
isset
(
$_
[
'file'
]))
echo
$_
[
'file'
]
?>
</p>
<p
class=
'hint'
>
<?php
if
(
isset
(
$_
[
'file'
]))
echo
htmlentities
(
$_
[
'file'
]
)
?>
</p>
</li>
</ul>
This diff is collapsed.
Click to expand it.
files/templates/index.php
+
1
−
1
View file @
cfd0140e
...
...
@@ -15,7 +15,7 @@
<form
data-upload-id=
'1'
class=
"file_upload_form"
action=
"ajax/upload.php"
method=
"post"
enctype=
"multipart/form-data"
target=
"file_upload_target_1"
>
<input
type=
"hidden"
name=
"MAX_FILE_SIZE"
value=
"
<?php
echo
$_
[
'uploadMaxFilesize'
]
?>
"
id=
"max_upload"
>
<input
type=
"hidden"
class=
"max_human_file_size"
value=
"(max
<?php
echo
$_
[
'uploadMaxHumanFilesize'
];
?>
)"
>
<input
type=
"hidden"
name=
"dir"
value=
"
<?php
echo
$_
[
'dir'
]
?>
"
id=
"dir"
>
<input
type=
"hidden"
name=
"dir"
value=
"
<?php
echo
htmlentities
(
$_
[
'dir'
]
)
?>
"
id=
"dir"
>
<button
class=
"file_upload_filename"
>
<img
class=
'svg action'
alt=
"Upload"
src=
"
<?php
echo
image_path
(
"core"
,
"actions/upload.svg"
);
?>
"
/></button>
<input
class=
"file_upload_start"
type=
"file"
name=
'files[]'
/>
<a
href=
"#"
class=
"file_upload_button_wrapper"
onclick=
"return false;"
title=
"
<?php
echo
$l
->
t
(
'Upload'
);
echo
' max. '
.
$_
[
'uploadMaxHumanFilesize'
]
?>
"
></a>
...
...
This diff is collapsed.
Click to expand it.
files/templates/part.breadcrumb.php
+
1
−
1
View file @
cfd0140e
<?php
for
(
$i
=
0
;
$i
<
count
(
$_
[
"breadcrumb"
]);
$i
++
)
:
$crumb
=
$_
[
"breadcrumb"
][
$i
];
?>
<div
class=
"crumb
<?php
if
(
$i
==
count
(
$_
[
"breadcrumb"
])
-
1
)
echo
'last'
;
?>
svg"
data-dir=
'
<?php
echo
$crumb
[
"dir"
];
?>
'
style=
'background-image:url("
<?php
echo
image_path
(
'core'
,
'breadcrumb.png'
);
?>
")'
>
<a
href=
"
<?php
echo
$_
[
'baseURL'
]
.
$crumb
[
"dir"
];
?>
"
>
<?php
echo
html
specialchar
s
(
$crumb
[
"name"
]);
?>
</a>
<a
href=
"
<?php
echo
$_
[
'baseURL'
]
.
$crumb
[
"dir"
];
?>
"
>
<?php
echo
html
entitie
s
(
$crumb
[
"name"
]);
?>
</a>
</div>
<?php
endfor
;
?>
\ No newline at end of file
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