Explorar o código

fix parse_query_params when value includes '='

ithewei hai 1 ano
pai
achega
6d23a08c42
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      http/http_content.cpp

+ 1 - 1
http/http_content.cpp

@@ -43,7 +43,7 @@ int parse_query_params(const char* query_string, QueryParams& query_params) {
             state = s_key;
             key = p+1;
         }
-        else if (*p == '=') {
+        else if (*p == '=' && state == s_key) {
             state = s_value;
             value = p+1;
         }