Browse Source

[mod_magnet] fix magnet_cgi_set() set of env vars (fixes #2763)

(thx flynn)

x-ref:
  "Setting REMOTE_USER with lua does not work"
  https://redmine.lighttpd.net/issues/2763
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
c74bdf834b
  1. 2
      src/mod_magnet.c

2
src/mod_magnet.c

@ -667,7 +667,7 @@ static int magnet_cgi_set(lua_State *L) {
/* __newindex: param 1 is the (empty) table the value is supposed to be set in */
const_buffer key = magnet_checkconstbuffer(L, 2);
const_buffer val = magnet_checkconstbuffer(L, 2);
const_buffer val = magnet_checkconstbuffer(L, 3);
array_set_key_value(con->environment, key.ptr, key.len, val.ptr, val.len);

Loading…
Cancel
Save