Changeset: c888eb2c7876 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c888eb2c7876
Modified Files:
clients/mapilib/connect.c
Branch: monetdburl
Log Message:
Redirects must be validated
diffs (14 lines):
diff --git a/clients/mapilib/connect.c b/clients/mapilib/connect.c
--- a/clients/mapilib/connect.c
+++ b/clients/mapilib/connect.c
@@ -762,7 +762,9 @@ mapi_handshake(Mapi mid)
char *red = mid->redirects[0];
char *error_message = NULL;
- if (!msettings_parse_url(mid->settings, red,
&error_message)) {
+ if (!msettings_parse_url(mid->settings, red,
&error_message)
+ || !msettings_validate(mid->settings,
&error_message)
+ ) {
mapi_close_handle(hdl);
close_connection(mid);
return mapi_printError(
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]