Переглянути джерело

fix parse_query_params when value includes '='

ithewei 1 рік тому
батько
коміт
6d23a08c42
1 змінених файлів з 1 додано та 1 видалено
  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;
         }