We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc8e84f + 639bb68 commit b06c258Copy full SHA for b06c258
web/includes/functions.php
@@ -2422,6 +2422,11 @@ function extract_auth_values_from_url($url) {
2422
$username = substr( $url, $protocolPrefixPos+3, $fieldsSeparatorPos-($protocolPrefixPos+3) );
2423
$password = substr( $url, $fieldsSeparatorPos+1, $authSeparatorPos-$fieldsSeparatorPos-1 );
2424
2425
+ // URL decode the credentials since they may contain encoded special characters
2426
+ // from ONVIF probe or manual URL entry
2427
+ $username = urldecode($username);
2428
+ $password = urldecode($password);
2429
+
2430
return array( $username, $password );
2431
}
2432
0 commit comments