Skip to content
Snippets Groups Projects
Commit c9b22626 authored by root's avatar root Committed by Giovannoni Laurent
Browse files

FIX pb with shibboleth

parent b9d5f6ed
No related branches found
No related tags found
No related merge requests found
......@@ -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}";
......
......@@ -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']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment