mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
parent
c10a7aa259
commit
f746780a1e
3 changed files with 52 additions and 2 deletions
|
|
@ -438,7 +438,7 @@ static CURLcode mqtt_get_topic(struct Curl_easy *data,
|
|||
const char *path = data->state.up.path;
|
||||
CURLcode result = CURLE_URL_MALFORMAT;
|
||||
if(strlen(path) > 1) {
|
||||
result = Curl_urldecode(path + 1, 0, topic, topiclen, REJECT_NADA);
|
||||
result = Curl_urldecode(path + 1, 0, topic, topiclen, REJECT_CTRL);
|
||||
if(!result && (*topiclen > 0xffff)) {
|
||||
failf(data, "Too long MQTT topic");
|
||||
result = CURLE_URL_MALFORMAT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue