Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1753165661, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"bbd9fd80fa8b236ec9cae5a344317f80", "commit": {"type":"commit", "time": 1744035864, "time_ofs": 60, "oid_tree": { "oid": "78162161ffba8ce7ae9f0bb47cd4347c09657041", "alias": []}, "oid":{ "oid": "9a9ab2865b7e155f0cde6342e288ef879f06ab82", "alias": []}, "msg": "Subject: [PATCH] Fix cgi QUERY_STRING key only field truncated", "sig_commit": { "git_time": { "time": 1744035864, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1744021689, "offset": 120 }, "name": "Albert Ribes", "email": "arm@albedo.biz", "md5": "4de3e0bb97c5df124955929569c99c1e" }}, "body": "Subject: [PATCH] Fix cgi QUERY_STRING key only field truncated\n\nA request like 'http://host?abc' set the QUERY_STRING variable for CGIs\nto \u0022ab\u0022 instead of \u0022abc\u0022. This was because the code didn't account for\nkey-only fields, only for key-value ones.\n" , "diff": "diff --git a/lib/roles/cgi/cgi-server.c b/lib/roles/cgi/cgi-server.c\nindex 295a4c9..8329da9 100644\n--- a/lib/roles/cgi/cgi-server.c\n+++ b/lib/roles/cgi/cgi-server.c\n@@ -257,7 +257,7 @@ lws_cgi_via_info(struct lws_cgi_info * cgiinfo)\n \t\t\tif (*t \u003d\u003d '\u003d')\n \t\t\t\t*p++ \u003d *t++;\n \t\t\ti \u003d urlencode(t, i - lws_ptr_diff(t, tok), p, lws_ptr_diff(end, p));\n-\t\t\tif (i \u003e 0) {\n+\t\t\tif (i \u003e\u003d 0) {\n \t\t\t\tp +\u003d i;\n \t\t\t\t*p++ \u003d '\u0026';\n \t\t\t}\n","s":{"c":1753165661,"u": 2699}} ],"g": 4083,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}