Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
c9b22626
Commit
c9b22626
authored
6 years ago
by
root
Committed by
Giovannoni Laurent
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
FIX pb with shibboleth
parent
b9d5f6ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/content_management/class/class_content_manager_tools_Abstract.php
+1
-1
1 addition, 1 deletion
...management/class/class_content_manager_tools_Abstract.php
src/app/contentManagement/controllers/JnlpController.php
+1
-1
1 addition, 1 deletion
src/app/contentManagement/controllers/JnlpController.php
with
2 additions
and
2 deletions
modules/content_management/class/class_content_manager_tools_Abstract.php
+
1
−
1
View file @
c9b22626
...
...
@@ -451,7 +451,7 @@ abstract class content_management_tools_Abstract
$jnlp_balise
->
appendChild
(
$jnlp_attribute2
);
$jnlp_attribute3
=
$docXML
->
createAttribute
(
'href'
);
$jnlp_attribute3
->
value
=
$jnlp_name
;
$jnlp_attribute3
->
value
=
htmlentities
(
$jnlp_name
)
;
$jnlp_balise
->
appendChild
(
$jnlp_attribute3
);
//"{$pathUrl}/rest/jnlp?fileName={$jnlp_name}";
...
...
This diff is collapsed.
Click to expand it.
src/app/contentManagement/controllers/JnlpController.php
+
1
−
1
View file @
c9b22626
...
...
@@ -182,7 +182,7 @@ class JnlpController
public
function
renderJnlp
(
Request
$request
,
Response
$response
,
array
$aArgs
)
{
if
(
explode
(
'.'
,
$aArgs
[
'jnlpUniqueId'
]
)[
1
]
!=
'
jnlp
'
)
{
if
(
strtoupper
(
pathinfo
(
$aArgs
[
'jnlpUniqueId'
]
,
PATHINFO_EXTENSION
))
!=
'
JNLP
'
)
{
return
$response
->
withStatus
(
403
)
->
withJson
([
'errors'
=>
'File extension forbidden'
]);
}
...
...
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