Quellcode durchsuchen

postprocessor: fixed incomplete processing of hex-encoding values

Under certain conditions, the final part of the last value can be left
unprocessed.
Evgeny Grin (Karlson2k) vor 4 Jahren
Ursprung
Commit
e9096b7c8d
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      src/microhttpd/postprocessor.c

+ 2 - 1
src/microhttpd/postprocessor.c

@@ -604,7 +604,8 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
         /* Case: 'value\n' or 'value\r' */
         end_value = &post_data[poff];
         poff++;
-        if (pp->must_ikvi)
+        if (pp->must_ikvi ||
+            (start_value != end_value) )
           pp->state = PP_Callback;
         else
           pp->state = PP_Done;