mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-11 16:40:17 +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) {
|
if (ok) {
|
||||||
*local_path = lp;
|
*local_path = lp;
|
||||||
|
if (u > cp_end) u = cp_end;
|
||||||
remainder->p = u;
|
remainder->p = u;
|
||||||
remainder->len = cp_end - u;
|
remainder->len = cp_end - u;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user