You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-09-27 12:19:56

Rafumel1774
Member
Registered: 2019-05-11
Posts: 131

External links for custom URL handlers broken

Between 10.0.6 and 10.0.10 the custom handler is not working anymore for custom protocols. We had an application that does steps according to the data in the external links.

Last edited by Rafumel1774 (2023-09-27 12:25:57)

Offline

#2 2023-09-27 12:49:46

Rafumel1774
Member
Registered: 2019-05-11
Posts: 131

Re: External links for custom URL handlers broken

Caused by the change in: /src/Toolbox/URL.php

After changing in Link.php
        if (!$replace_IP && !$replace_MAC) {
            if ($safe_url) {
                $link = URL::sanitizeURL($link) ?: '#';
            }
            return [$link];

to
        if (!$replace_IP && !$replace_MAC) {
            if ($safe_url) {
                $link = $link;
                #$link = URL::sanitizeURL($link) ?: '#';
            }
            return [$link];

It works again. However this can be DANGEROUS as this may causes security issues! Do it on your own risk - required for me for production use.

Last edited by Rafumel1774 (2023-09-27 13:03:51)

Offline

Board footer

Powered by FluxBB