2
0
forked from Wavyzz/dolibarr

Remove warning we should not have in a common usage.

This commit is contained in:
Laurent Destailleur
2023-11-13 19:08:33 +01:00
parent c8c8618e55
commit d5139398cd

View File

@@ -2885,7 +2885,7 @@ function acceptLocalLinktoMedia()
if (!$allowPrivateNetworkIP && !filter_var($iptocheck, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
// If ip of public url is a private network IP, we do not allow this.
$acceptlocallinktomedia = 0;
setEventMessage("WYSIWYG Editor : local media not allowed (checked IP: {$iptocheck}). Use {$allowParamName} = 1 to allow local network ip", 'warnings');
//dol_syslog("WYSIWYG Editor : local media not allowed (checked IP: {$iptocheck}). Use {$allowParamName} = 1 to allow local URL into WYSIWYG html content");
}
if (preg_match('/http:/i', $urlwithouturlroot)) {