Commits
- Commit:
3e5418099fb2d44e0ffa9c65af66657cb28b466b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] always set some variables
- Commit:
67528c1f82bed7d6626c3be7a68d3cd98b4944f5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't add the query to argv
FRC3875 says that if the query does not contain any unecnoded "="
characters, we SHOULD treat the query string as a "search-string",
split in on "+" and add every word to the CGI argv.
In launch_cgi it's too late because iri->query is the *decoded* query!
I have in mind some refactoring around how we decode things, so this
is postponed.
- Commit:
2fafa2d23e5607def335902b7a9d10a9de5247a9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bring the CGI implementation in par with GLV-1.12556
- Commit:
7808978667888512395e63519751796dacae8550
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix computed offset
Oh my, this is such a stupid mistake. It went undiscovered only
because I always used CGI scripts on the first vhost (and hence the
offset would be 0) and never on the others.
- Commit:
10782292833e092d37935a2c8b9e8e00bb88925d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
unveil x the vhosts directories
- Commit:
28ec61780962b6aa7b50845e3738399a92dc9e0c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync the CGI environment with the manpage
while there also add SERVER_PROTOCOL
- Commit:
0baf6bed2a419b617d47e27c4687fccb1e721e49
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pass the fd, not the path!
- Commit:
05748e49fed64039616d4bb06a7e09388b0f5467
- From:
- Omar Polo <op@omarpolo.com>
- Date:
chdir to the vhost root before exec'ing the CGI script
- Commit:
710a71b2bbeae65e6c5e5707962a93cebe48a865
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't leak file descriptors
- Commit:
568a09c220a706cb717f345a4da14e935dca1672
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix requri construction
when we switched from one process to two, I introduced a small
optimisation: empty string are not send, so we receive NULL.
Constructing requri we need to make sure that relpath is not null.
- Commit:
881a9dd9c2aebbf73f333dd3d8be4ce5400f717f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
split into two processes: listener and executor
this way, we can sandbox the listener with seccomp (todo) or capsicum
(already done) and still have CGI scripts. When we want to exec, we
tell the executor what to do, the executor executes the scripts and
send the fd backt to the listener.