You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1830,13 +1835,24 @@ public static function sanitizeRemoteUrl($url)
1830
1835
$_SERVER['LOCAL_ADDR'] ?? ''
1831
1836
];
1832
1837
1833
-
if (in_array($parts['host'], $restricted_hosts)) {
1834
-
return'';
1838
+
if (in_array($parts['host'], $restricted_hosts) && !in_array($parts['host'], $host_white_list)) {
1839
+
if ($throw_exception) {
1840
+
thrownew \Exception(__('Domain or IP address is not allowed: :%host%. Whitelist it via APP_REMOTE_HOST_WHITE_LIST .env parameter.', ['%host%' => $parts['host']]), 1);
thrownew \Exception(__('Domain or IP address is not allowed: :%host%. Whitelist it via APP_REMOTE_HOST_WHITE_LIST .env parameter.', ['%host%' => $remote_host_ip]), 1);
0 commit comments