Explorar el Código

fix parse_query_params when value includes '='

ithewei hace 1 año
padre
commit
6d23a08c42
Se han modificado 1 ficheros con 1 adiciones y 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;
         }