Commit graph

274 commits

Author SHA1 Message Date
Adrian Perez
42d2f1b1f7 Properly escape ':' and '?' in generated hrefs
Unfortunately ngx_escape_uri() does not properly escape all characters
that may be problematic in URIs, so apart from doing a first pass with
ngx_escape_uri(), it is needed to do a second pass for escaping the rest
of characters.

Thanks to Steve Willing <eiji-gravion@hotmail.com> for reporting the issue.
2011-04-04 03:46:51 +03:00
Adrian Perez
d8e0bdaef2 Update e-mail address and copyright headers 2011-04-03 00:22:59 +03:00
Adrian Perez
2f138afb70 Implement fancyindex_ignore configuration directive
Adds a new "fancyindex_ignore string1 [string2 [... stringN]]" directive
which sets a lists of files which are not to be shown in generated listings.
If Nginx is built with PCRE support, strings are interpreted as regular
expressions, and files which match one of the regular expressions in this
list will not be sent in listings.
2010-09-09 16:42:46 +02:00
Sergey A. Osokin
3d1c14f162 Fix incompatibility with Nginx 0.7.66
Adds a couple of additional version checks to make the module compatible
with Nginx 0.7.66.

Signed-off-by: Adrian Perez <aperez@igalia.com>
2010-06-10 18:38:45 +02:00
Adrian Perez
4b19f3a73f Add fancyindex_css_href configuration option
This allows for inserting a <link> tag in the generated listings pointing to
an additional CSS stylesheet, which will be applied by the browser after the
built-in rules. This allows for super-easy customization of the output look.
2010-06-10 16:56:31 +02:00
Adrian Perez
224db63c53 Save some bytes removing things in the template
* Removed the 'media="screen"', because it is unlikely that an user would
  like to print a file listing.

* Removed unused "#readme" rule in the CSS part. Support for inlining a file
  was discontinued long ago.
2010-06-10 14:52:23 +02:00
Adrian Perez
062b851137 Update README file, add .gitignore
* Change old e-mail address to my new one.
* State that the module is unsupported in Nginx 0.6.x
* Remove text about the fancyindex_readme* directives
* Add some basic git ignores.
2010-06-10 01:49:30 +02:00
Sergey A. Osokin
f465a2bcd6 Small improvement over previous patch
Sergey A. Osokin provided this small improvement for the his previous patch
regarding the "zero_in_uri" being absent in newer development versions of
Nginx.

Signed-off-by: Adrian Perez <aperez@igalia.com>
2010-06-07 02:14:41 +02:00
Sergey A. Osokin
d54092b842 Fix build with latest development versions of Nginx
The zero_in_uri member of the request structure does not longer exist, so
removed a reference to it.

Signed-off-by: Adrian Perez <aperez@igalia.com>
2010-06-03 22:08:59 +02:00
Benoit Sigoure
bcbf8144c6 Whenever a directory contained a file that couldn't be stat()ed by nginx
(e.g. due to EACCESS), the fancyindex module would produce an error and
wouldn't generate any response to the user.

The new behavior is to log a non-critical error and keep serving the page
anyway.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Signed-off-by: Adrian Perez <aperez@igalia.com>
2010-03-10 01:53:19 +01:00
Adrián Pérez
3d18805d3a Merged support for nginx 0.8 2009-06-07 06:50:30 +02:00
Adrián Pérez
9e6893c0c8 Be compatible with Nginx 0.8.0 2009-06-06 22:09:04 +02:00
Adrián Pérez
4fa7e69117 Add patch for nginx 0.6 2008-12-10 02:34:30 +01:00
Adrián Pérez
6d5cec8e68 Corrected README 2008-12-10 02:23:32 +01:00
Adrian Perez
30337efcb3 Removed half-implemented readme_* directives (#1) 2008-09-11 19:55:52 +02:00
Adrian Perez
9b75e7ebf9 Add note on gawk requisite 2008-09-11 19:55:34 +02:00
Adrian Perez
207be06cd4 Fixes for building on nginx 0.7.7 2008-08-01 11:27:01 +02:00
Adrian Perez
0b7e40f274 Fixed issue with non-bash shells being unable of configuring the module. 2007-09-28 23:01:28 +02:00
Adrian Perez
d508e6f95a - Added support for sending as much response as possible in a single
ngx_chain_t instead of always calling the output filter three times.
  This should avoid possible blocking in Nginx code.
- Added warning about using external URLs in subrequest in readme file.
- Factorized out some variable declarations out to function header. Removed
  a shadowed variable.
- Removed some debugging statements.
2007-09-19 18:22:16 +02:00
Adrian Perez
7181e18fb3 Fixed order of handler linkage, fixes #240 2007-09-14 13:39:50 +02:00
Adrian Perez
74863e2716 Fixed module initialization order, so we end up behinx index_module 2007-09-14 04:04:37 +02:00
Adrian Perez
2f429b796b - Updated documentation.
- Fixed XHTML 1.0 validation by enclosing JS code into a CDATA section.
2007-09-13 23:40:40 +02:00
Adrian Perez
75e90109e0 Fixed handling of NGX_AGAIN in big responses 2007-09-12 17:16:59 +02:00
Adrian Perez
4cc0d75806 Fixed readme 2007-09-12 12:40:21 +02:00
Adrian Perez
d47dd32858 some code cleanup 2007-09-12 12:38:37 +02:00
Adrian Perez
1eaaa8b505 - Make sure the thing compiles with 0.6.11
- Removed a compiler warning
2007-09-12 11:42:21 +02:00
Adrian Perez
312c69b5aa Merged changes which fix up ticket #231 2007-09-12 11:36:06 +02:00
Adrian Perez
45775bd0f1 - At last, inclusion works in proper order. 2007-09-12 01:11:46 +02:00
Adrian Perez
feaa4d9bf7 compiles -- just do not ask 2007-09-11 19:12:58 +02:00
Adrian Perez
7e156ff58d - Implemented seperate functions to create header/footer buffers.
- Simplified template.html and make code work with new template. Some vars
  were uneeded.
- Added buffer chain debug macro in module header.
2007-09-11 13:52:53 +02:00
Adrian Perez
549d00bdae Clarified documentation 2007-09-11 12:28:26 +02:00
Adrian Perez
a29f1d861e Some progress for #232 2007-09-10 19:42:11 +02:00
Adrian Perez
ddadd2a210 Removed now unused (see comments on #205) include_mode and corresponding directive 2007-09-10 18:01:40 +02:00
Adrian Perez
bfbc9fd4a2 cierra el ticket #205 2007-09-10 15:05:58 +02:00
Adrian Perez
323cea9298 Removed unneeded stuff, we will do subrequests 2007-09-06 21:06:43 +02:00
Adrian Perez
b2553401cf Simplified an expression a bit 2007-09-06 18:37:53 +02:00
Adrian Perez
05be79d572 - Removed uneeded extra slash in generated src attribute of <iframe>.
- Mapping of URIs to proper header/footer files is done properly now for
  relative paths. Buffer object is returned, but not used yet.
2007-09-06 17:51:44 +02:00
Adrian Perez
3bfd1094a5 Needs more love in the resolution of URI -> path 2007-09-06 14:20:48 +02:00
Adrian Perez
9a22652366 more work on the thing 2007-09-05 19:37:25 +02:00
Adrian Perez
a530ef1cd8 Implemented setup of buffer flags so nginx knows where to read the file
from.
2007-09-05 15:47:22 +02:00
Adrian Perez
a9a8ced810 - Implemented resolution of URI-style file name to path and checks for valid
file into the inliner.
- Moved module configuration structure definition to header file.
2007-09-05 14:01:01 +02:00
Adrian Perez
493c40587b started work on inliner stuff 2007-09-04 21:00:48 +02:00
Adrian Perez
afcb883c7a the thing builds, again 2007-09-04 19:29:53 +02:00
Adrian Perez
97c2710a12 WARNING: This revision WON'T compile at all. You have been warned.
- Added early adaptation of dictionary implementation, needs rework (does
	not build...)
2007-09-03 20:36:32 +02:00
Adrian Perez
2818c1917c Moved some code into header 2007-08-31 01:56:21 +02:00
Adrian Perez
ef9ee57749 Updated README 2007-08-30 18:39:37 +02:00
Adrian Perez
c0be73d8ad Prepared for inclusion of new features 2007-08-30 18:38:39 +02:00
Adrian Perez
0101fd77a1 - Removed unused macro nfi_conf_path_set.
- Fixed flags for the readme mode, now they are disjoint. This fixed some
  other related things.
- Renamed fancyindex_readme_options to fancyindex_readme_mode (shorter
  and clearer, IMHO)
- Renamed fancyindex_mode to fancyindex_include_mode (clearer).
- Checks for bottom/top readme are now properly done.
- Fix: Initialization of readme_flags now is zero instead of NGX_CONF_UNSET.
- Improved iteration of builtin template.
2007-08-30 18:13:05 +02:00
Adrian Perez
855adc70eb - It is ALIVE. 2007-08-30 14:29:41 +02:00
Adrian Perez
4e3d3c4816 Stuff now compiles with nginx 0.6.9 sources. Changed enum type to plain
ngx_uint_t, so we can use nginx's config merge macros.
2007-08-30 14:06:33 +02:00