Changeset: f3c9e7aa85ba for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f3c9e7aa85ba
Modified Files:
        clients/mapilib/parseurl.c
Branch: Dec2023
Log Message:

Reject user@host syntax


diffs (12 lines):

diff --git a/clients/mapilib/parseurl.c b/clients/mapilib/parseurl.c
--- a/clients/mapilib/parseurl.c
+++ b/clients/mapilib/parseurl.c
@@ -405,6 +405,8 @@ parse_classic_tcp(msettings *mp, scanner
 
        // parse the host
        char *host = find(sc, ":?/");
+       if (strchr(host, '@') != NULL)
+               return complain(sc, "host@user syntax is not allowed");
        if (!store(mp, sc, MP_HOST, host))
                return false;
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to