You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd1.4/src
Glenn Strauss 255269d799 [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911)
Provide means to encode redirect and rewrite backreference substitutions
  In addition to $1 and %1, the following modifiers are now supported,
  followed by the number for the backreference, e.g. ${esc:1}

  ${noesc:...}  no escaping
  ${esc:...}    escape all non-alphanumeric - . _ ~ incl double-escape %
  ${escape:...} escape all non-alphanumeric - . _ ~ incl double-escape %
  ${escnde:...} escape all non-alphanumeric - . _ ~  but no double-esc %
  ${tolower:...}
  ${toupper:...}

  %{noesc:...}
  %{esc:...}
  %{escape:...}
  %{escnde:...}
  %{tolower:...}
  %{toupper:...}

Provide means to substitute URI parts without needing a regex match
  (and can be preceded by encoding modifier,
     e.g. ${tolower:url.authority})

  ${url.scheme}
  ${url.authority}
  ${url.port}
  ${url.path}
  ${url.query}

  ${qsa}        appends query string, if not empty

x-ref:
  "[PATCH] mod_redirect: Add support for url-encoding backreferences, map %%n->%n, $$n->$n"
  https://redmine.lighttpd.net/issues/443
  "Need for URL encoding in mod_redirect and possibly mod_rewrite"
  https://redmine.lighttpd.net/issues/911
5 years ago
..
t [core] fix buffer_to_upper() 5 years ago
CMakeLists.txt [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
Makefile.am [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
SConscript [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
algo_sha1.c [algo_sha1] fix compile break and warnings 6 years ago
algo_sha1.h [algo_sha1] fix compile break and warnings 6 years ago
array.c [core] remove proc_open.[ch], reduce stdio.h use 5 years ago
array.h [core] some header cleanup 5 years ago
base.h [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
base64.c [core] fix base64 decode when char is unsigned (fixes #2848) 6 years ago
base64.h consistent inclusion of config.h at top of files (fixes #2073) 7 years ago
base_decls.h [core] some header cleanup 5 years ago
buffer.c [core] fix buffer_to_upper() 5 years ago
buffer.h [core] inline some buffer.[ch] routines 5 years ago
burl.c [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911) 5 years ago
burl.h [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911) 5 years ago
chunk.c [core] fix segfault if tempdirs fill up (fixes #2843) 6 years ago
chunk.h [core] inline chunkqueue_is_empty() 6 years ago
config.h.cmake [mod_authn_ldap] replace use of deprecated funcs 6 years ago
configfile-glue.c [core] data_config_pcre_compile,exec() 5 years ago
configfile.c [core] debug server.log-request-header-on-error 5 years ago
configfile.h [core] data_config_pcre_compile,exec() 5 years ago
configparser.y [core] data_config_pcre_compile,exec() 5 years ago
connections-glue.c [core] some header cleanup 5 years ago
connections.c [core] some header cleanup 5 years ago
connections.h [core] some header cleanup 5 years ago
crc32.c consistent inclusion of config.h at top of files (fixes #2073) 7 years ago
crc32.h [core] some header cleanup 5 years ago
data_array.c [core] remove proc_open.[ch], reduce stdio.h use 5 years ago
data_config.c [core] data_config_pcre_compile,exec() 5 years ago
data_integer.c consistent inclusion of config.h at top of files (fixes #2073) 7 years ago
data_string.c [core] remove some unused header includes 6 years ago
etag.c [core] some header cleanup 5 years ago
etag.h [core] some header cleanup 5 years ago
fastcgi.h - white space cleanup part 2 this time 1.4 ;) 17 years ago
fdevent.c [core] check if SOCK_NONBLOCK is ignored (fixes #2883) 5 years ago
fdevent.h [core] some header cleanup 5 years ago
fdevent_freebsd_kqueue.c [core] support POLLRDHUP, where available (#2743) 6 years ago
fdevent_impl.h [core] some header cleanup 5 years ago
fdevent_libev.c [core] isolate backend fdevent handler defs 6 years ago
fdevent_linux_sysepoll.c [core] support POLLRDHUP, where available (#2743) 6 years ago
fdevent_poll.c [core] support POLLRDHUP, where available (#2743) 6 years ago
fdevent_select.c [core] isolate backend fdevent handler defs 6 years ago
fdevent_solaris_devpoll.c [core] isolate backend fdevent handler defs 6 years ago
fdevent_solaris_port.c [core] add include sys/poll.h on Solaris (fixes #2859) 5 years ago
first.h [core] some header cleanup 5 years ago
gw_backend.c [core] http_kv.[ch] method, status, version str 5 years ago
gw_backend.h [core] some header cleanup 5 years ago
http-header-glue.c [mod_cgi] handle CGI partial response header write 5 years ago
http_auth.c [core] some header cleanup 5 years ago
http_auth.h [core] some header cleanup 5 years ago
http_chunk.c [core] some header cleanup 5 years ago
http_chunk.h [core] some header cleanup 5 years ago
http_kv.c [core] remove unused get_http_status_body_name() 5 years ago
http_kv.h [core] remove unused get_http_status_body_name() 5 years ago
http_vhostdb.c [core] initialize globals at top of main() 6 years ago
http_vhostdb.h [core] some header cleanup 5 years ago
inet_ntop_cache.c [core] isolate sock_addr manipulation 6 years ago
inet_ntop_cache.h [core] isolate sock_addr manipulation 6 years ago
joblist.c [core] reduce exposure of unistd.h, other includes 6 years ago
joblist.h [core] some header cleanup 5 years ago
keyvalue.c [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911) 5 years ago
keyvalue.h [mod_redirect,mod_rewrite] pass request URI info 5 years ago
lemon.c [meson] new build system 6 years ago
lempar.c fix errors detected by Coverity Scan 7 years ago
lighttpd-angel.c [core] attempt to quiet coverity false positives 6 years ago
log.c [core] remove some duplicative code in log.c 5 years ago
log.h [core] some header cleanup 5 years ago
md5.c [core] some header cleanup 5 years ago
md5.h [core] some header cleanup 5 years ago
meson.build [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
mod_access.c [core] remove some unused header includes 6 years ago
mod_accesslog.c [mod_accesslog] %{canonical,local,remote}p (fixes #2840) 6 years ago
mod_alias.c [core] remove some unused header includes 6 years ago
mod_auth.c [core] some header cleanup 5 years ago
mod_authn_file.c [mod_auth] constant time compare plain passwords 5 years ago
mod_authn_gssapi.c [core] attempt to quiet coverity false positives 6 years ago
mod_authn_ldap.c [core] some header cleanup 5 years ago
mod_authn_mysql.c [core] some header cleanup 5 years ago
mod_authn_sasl.c [core] some header cleanup 5 years ago
mod_cgi.c [core] http_kv.[ch] method, status, version str 5 years ago
mod_cml.c [core] some header cleanup 5 years ago
mod_cml.h [core] some header cleanup 5 years ago
mod_cml_funcs.c [core] some header cleanup 5 years ago
mod_cml_funcs.h [autobuild] rm module stub code for missing deps 7 years ago
mod_cml_lua.c [core] some header cleanup 5 years ago
mod_compress.c [core] some header cleanup 5 years ago
mod_deflate.c [mod_compress,mod_deflate] try mmap MAP_PRIVATE 6 years ago
mod_dirlisting.c [core] some header cleanup 5 years ago
mod_evasive.c [core] isolate sock_addr manipulation 6 years ago
mod_evhost.c [core] some header cleanup 5 years ago
mod_expire.c [core] remove some unused header includes 6 years ago
mod_extforward.c [core] some header cleanup 5 years ago
mod_fastcgi.c [mod_fastcgi,mod_scgi] fastcgi.balance,scgi.balance (fixes #2882) 5 years ago
mod_flv_streaming.c [core] remove unused includes of stat_cache.h 6 years ago
mod_geoip.c [mod_geoip] call from handle_request_env hook 6 years ago
mod_indexfile.c [core] remove some unused header includes 6 years ago
mod_magnet.c [mod_magnet] reduce buffer copies 5 years ago
mod_magnet_cache.c [core] some header cleanup 5 years ago
mod_magnet_cache.h [core] some header cleanup 5 years ago
mod_mysql_vhost.c [core] some header cleanup 5 years ago
mod_openssl.c [mod_openssl] elliptic curve auto selection (fixes #2833) 5 years ago
mod_proxy.c [core] http_kv.[ch] method, status, version str 5 years ago
mod_redirect.c [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911) 5 years ago
mod_rewrite.c [mod_redirect,mod_rewrite] encoding options (fixes #443, fixes #911) 5 years ago
mod_rrdtool.c [core] some header cleanup 5 years ago
mod_scgi.c [mod_fastcgi,mod_scgi] fastcgi.balance,scgi.balance (fixes #2882) 5 years ago
mod_secdownload.c [mod_secdownload] compare bin MAC instead of hex 5 years ago
mod_setenv.c [config] more specific checks for array lists 6 years ago
mod_simple_vhost.c [core] remove some unused header includes 6 years ago
mod_skeleton.c [core] calloc plugin_config for consistent init 6 years ago
mod_ssi.c [core] some header cleanup 5 years ago
mod_ssi.h [core] some header cleanup 5 years ago
mod_ssi_expr.c [core] some header cleanup 5 years ago
mod_ssi_expr.h consistent inclusion of config.h at top of files (fixes #2073) 7 years ago
mod_ssi_exprparser.y [core] remove some unused header includes 6 years ago
mod_staticfile.c [core] remove unused includes of stat_cache.h 6 years ago
mod_status.c [core] some header cleanup 5 years ago
mod_trigger_b4_dl.c [core] some header cleanup 5 years ago
mod_uploadprogress.c [core] remove unused includes of stat_cache.h 6 years ago
mod_userdir.c [core] some header cleanup 5 years ago
mod_usertrack.c [core] buffer_append_string_encoded_hex_lc() 5 years ago
mod_vhostdb.c [core] some header cleanup 5 years ago
mod_vhostdb_dbi.c [core] rename fd_close_on_exec() 6 years ago
mod_vhostdb_ldap.c [mod_authn_ldap] auth with ldap referrals (fixes #2846) 5 years ago
mod_vhostdb_mysql.c [core] rename fd_close_on_exec() 6 years ago
mod_vhostdb_pgsql.c [config] more specific checks for array lists 6 years ago
mod_webdav.c [core] some header cleanup 5 years ago
mod_wstunnel.c [mod_wstunnel] better Sec-WebSocket-Protocol parse 5 years ago
network.c [core] some header cleanup 5 years ago
network.h [core] some header cleanup 5 years ago
network_write.c [core] consolidate backend network write handlers 6 years ago
network_write.h [core] consolidate backend network write handlers 6 years ago
plugin.c [core] some header cleanup 5 years ago
plugin.h [core] some header cleanup 5 years ago
rand.c [core] adjust li_rand_pseudo* interfaces 6 years ago
rand.h [core] adjust li_rand_pseudo* interfaces 6 years ago
request.c [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
request.h [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
response.c [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
response.h [core] some header cleanup 5 years ago
safe_memclear.c [core] some header cleanup 5 years ago
safe_memclear.h [core] some header cleanup 5 years ago
server.c [core] server.http-parseopts URL normalization opt (fixes #1720) 5 years ago
server.h [core] some header cleanup 5 years ago
settings.h [core] some header cleanup 5 years ago
sock_addr.c [core] quiet coverity false positive 6 years ago
sock_addr.h [core] isolate sock_addr manipulation 6 years ago
splaytree.c Fix header inclusion order, always include "config.h" before any system header 14 years ago
splaytree.h consistent inclusion of config.h at top of files (fixes #2073) 7 years ago
stat_cache.c [core] some header cleanup 5 years ago
stat_cache.h [core] some header cleanup 5 years ago
status_counter.c [mod_fastcgi] slightly simplify counters 6 years ago
status_counter.h [core] some header cleanup 5 years ago
stream.c [core] remove some unused header includes 6 years ago
stream.h [config] support include file glob (fixes #1221) 7 years ago
sys-endian.h DragonFlyBSD defines __DragonFly__ (#2746) 7 years ago
sys-mmap.h consistent inclusion of config.h at top of files (fixes #2073) 7 years ago
sys-socket.h [core] some header cleanup 5 years ago
sys-strings.h [core] sys-strings.h abstraction for strings.h 6 years ago
vector.c [core] some header cleanup 5 years ago
vector.h [core] some header cleanup 5 years ago