mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
Fix overrun in url rewrites, add tests
PUBLISHED_FROM=03dc62aa69dddcbe41d5bc5c014de248332da918
This commit is contained in:
1 parent
af98854ce4
commit
1070dd2d87
1 file changed
+1
@@ -6410,6 +6410,7 @@ MG_INTERNAL int mg_uri_to_local_path(struct http_message *hm,
|
||||
}
|
||||
if (ok) {
|
||||
*local_path = lp;
|
||||
if (u > cp_end) u = cp_end;
|
||||
remainder->p = u;
|
||||
remainder->len = cp_end - u;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user