Merge pull request #13451 from lafirest/fix/def_banned_file

fix: do not convert a empty file name to a empty list
This commit is contained in:
lafirest 2024-07-12 13:50:32 +08:00 committed by GitHub
commit 1b7d23cef4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -3355,6 +3355,8 @@ default_listener(SSLListener) ->
%% otherwise always return string. %% otherwise always return string.
naive_env_interpolation(undefined) -> naive_env_interpolation(undefined) ->
undefined; undefined;
naive_env_interpolation(<<>>) ->
<<>>;
naive_env_interpolation(Bin) when is_binary(Bin) -> naive_env_interpolation(Bin) when is_binary(Bin) ->
naive_env_interpolation(unicode:characters_to_list(Bin, utf8)); naive_env_interpolation(unicode:characters_to_list(Bin, utf8));
naive_env_interpolation("$" ++ Maybe = Original) -> naive_env_interpolation("$" ++ Maybe = Original) ->