Skip to content

Commit f2d431b

Browse files
feat: update libnginx-mod-http-fancyindex to 1:0.5.2-5
1 parent 19bd762 commit f2d431b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3404
-33
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.gitignore export-ignore
2+
/.travis.yml export-ignore
3+
/make-dist export-ignore
4+
t/* text eol=lf

CHANGELOG.md

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
## [Unreleased]
5+
6+
## [0.5.2] - 2021-10-28
7+
### Fixed
8+
- Properly escape file names to ensure that file names are never renreded
9+
as HTML. (Patch by Anthony Ryan <<[email protected]>>,
10+
[#128](https://github.com/aperezdc/ngx-fancyindex/pull/128).)
11+
12+
## [0.5.1] - 2020-10-26
13+
### Fixed
14+
- Properly handle optional second argument to `fancyindex_header` and
15+
`fancyindex_footer`
16+
([#117](https://github.com/aperezdc/ngx-fancyindex/issues/117)).
17+
18+
## [0.5.0] - 2020-10-24
19+
### Added
20+
- New option `fancyindex_show_dotfiles`. (Path by Joshua Shaffer
21+
22+
- The `fancyindex_header` and `fancyindex_footer` options now support local
23+
files properly, by means of a `local` flag. (Patches by JoungKyun Kim
24+
<<[email protected]>> and Adrián Pérez <<[email protected]>>.)
25+
26+
### Changed
27+
- Improved performance of directory entry sorting, which should be quite
28+
noticeable for directories with thousands of files. (Patch by
29+
[Yuxiang Zhang](https://github.com/z4yx).)
30+
- The minimum Nginx version supported by the module is now 0.8.x.
31+
32+
### Fixed
33+
- Properly escape square brackets in directory entry names when the module
34+
is built with older versions of Nginx. (Patch by Adrián Pérez
35+
36+
- Fix directory entry listing not being shown when using the
37+
[nginx-auth-ldap](https://github.com/kvspb/nginx-auth-ldap) module. (Patch
38+
by JoungKyun Kim <<[email protected]>>.)
39+
40+
## [0.4.4] - 2020-02-19
41+
### Added
42+
- New option `fancyindex_hide_parent_dir`, which disables generating
43+
links to parent directories in listings. (Patch by Kawai Ryota
44+
45+
46+
### Changed
47+
- Each table row is now separated by a new line (as a matter of fact,
48+
a `CRLF` sequence), which makes it easier to parse output using simple
49+
text tools. (Patch by Anders Trier <<[email protected]>>.)
50+
- Some corrections and additions to the README file. (Patches by Nicolas
51+
Carpi <<[email protected]>> and David Beitey <<[email protected]>>.)
52+
53+
### Fixed
54+
- Use correct character references for `&` characters in table sorter URLs
55+
within the template (Patch by David Beitey <<[email protected]>>.)
56+
- Properly encode filenames when used as URI components.
57+
58+
## [0.4.3] - 2018-07-03
59+
### Added
60+
- Table cells now have class names, which allows for better CSS styling.
61+
(Patch by qjqqyy <<[email protected]>>.)
62+
- The test suite now can parse and check elements from the HTML returned
63+
by the module, thanks to the [pup](https://github.com/EricChiang/pup)
64+
tool.
65+
66+
### Fixed
67+
- Sorting by file size now works correctly.
68+
(Patch by qjqqyy <<[email protected]>>.)
69+
70+
## [0.4.2] - 2017-08-19
71+
### Changed
72+
- Generated HTML from the default template is now proper HTML5, and it should
73+
pass validation (#52).
74+
- File sizes now have decimal positions when using `fancyindex_exact_size off`.
75+
(Patch by Anders Trier <<[email protected]>>.)
76+
- Multiple updates to `README.rst` (Patches by Danila Vershinin
77+
<<[email protected]>>, Iulian Onofrei, Lilian Besson, and Nick Geoghegan
78+
79+
80+
### Fixed
81+
- Sorting by file size now also works correctly for directories which contain
82+
files of sizes bigger than `INT_MAX`. (#74, fix suggestion by Chris Young.)
83+
- Custom headers which fail to declare an UTF-8 encoding no longer cause table
84+
header arrows to be rendered incorrectly by browsers (#50).
85+
- Fix segmentation fault when opening directories with empty files (#61, patch
86+
by Catgirl <<[email protected]>>.)
87+
88+
## [0.4.1] - 2016-08-18
89+
### Added
90+
- New `fancyindex_directories_first` configuration directive (enabled by
91+
default), which allows setting whether directories are sorted before other
92+
files. (Patch by Luke Zapart <<[email protected]>>.)
93+
94+
### Fixed
95+
- Fix index files not working when the fancyindex module is in use (#46).
96+
97+
98+
## [0.4.0] - 2016-06-08
99+
### Added
100+
- The module can now be built as a [dynamic
101+
module](https://www.nginx.com/resources/wiki/extending/converting/).
102+
(Patch by Róbert Nagy <<[email protected]>>.)
103+
- New configuration directive `fancyindex_show_path`, which allows hiding the
104+
`<h1>` header which contains the current path.
105+
(Patch by Thomas P. <<[email protected]>>.)
106+
107+
### Changed
108+
- Directory and file links in listings now have a title="..." attribute.
109+
(Patch by `@janglapuk` <<[email protected]>>.)
110+
111+
### Fixed
112+
- Fix for hung requests when the module is used along with `ngx_pagespeed`.
113+
(Patch by Otto van der Schaaf <<[email protected]>>.)
114+
115+
116+
## [0.3.6] - 2016-01-26
117+
### Added
118+
- New feature: Allow filtering out symbolic links using the
119+
`fancyindex_hide_symlinks` configuration directive. (Idea and prototype
120+
patch by Thomas Wemm.)
121+
- New feature: Allow specifying the format of timestamps using the
122+
`fancyindex_time_format` configuration directive. (Idea suggested by Xiao
123+
Meng <<[email protected]>>).
124+
125+
### Changed
126+
- Listings in top-level directories will not generate a "Parent Directory"
127+
link as first element of the listing. (Patch by Thomas P.)
128+
129+
### Fixed
130+
- Fix propagation and overriding of the `fancyindex_css_href` setting inside
131+
nested locations.
132+
- Minor changes in the code to allow building cleanly under Windows with
133+
Visual Studio 2013. (Patch by Y. Yuan <<[email protected]>>).
134+
135+
136+
## [0.3.5] - 2015-02-19
137+
### Added
138+
- New feature: Allow setting the default sort criterion using the
139+
`fancyindex_default_sort` configuration directive. (Patch by
140+
Алексей Урбанский).
141+
- New feature: Allow changing the maximum length of file names, using
142+
the `fancyindex_name_length` configuration directive. (Patch by
143+
Martin Herkt).
144+
145+
### Changed
146+
- Renames `NEWS.rst` to `CHANGELOG.md`, which follows the recommendations
147+
from [Keep a Change Log](http://keepachangelog.com/).
148+
- Configuring Nginx without the `http_addition_module` will generate a
149+
warning during configuration, as it is needed for the `fancyindex_footer`
150+
and `fancyindex_header` directives.
151+
152+
153+
## [0.3.4] - 2014-09-03
154+
155+
### Added
156+
- Viewport is now defined in the generated HTML, which works better
157+
for mobile devices.
158+
159+
### Changed
160+
- Even-odd row styling moved to the CSS using :nth-child(). This
161+
makes the HTML served to clients smaller.
162+
163+
164+
## [0.3.3] - 2013-10-25
165+
166+
### Added
167+
- New feature: table headers in the default template are now clickable
168+
to set the sorting criteria and direction of the index entries.
169+
(https://github.com/aperezdc/ngx-fancyindex/issues/7)
170+
171+
172+
## [0.3.2] - 2013-06-05
173+
174+
### Fixed
175+
- Solved a bug that would leave certain clients stalled forever.
176+
- Improved handling of subrequests for non-builtin headers/footers.
177+
178+
179+
## [0.3.1] - 2011-04-04
180+
181+
### Added
182+
- `NEWS.rst` file, to act as change log.
183+
184+
185+
[Unreleased]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.5.2...HEAD
186+
[0.5.2]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.5.1...v0.5.2
187+
[0.5.1]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.5.0...v0.5.1
188+
[0.5.0]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.4.4...v0.5.0
189+
[0.4.4]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.4.3...v0.4.4
190+
[0.4.3]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.4.2...v0.4.3
191+
[0.4.2]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.4.1...v0.4.2
192+
[0.4.1]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.4.0...v0.4.1
193+
[0.4.0]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3.6...v0.4.0
194+
[0.3.6]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3.5...v0.3.6
195+
[0.3.5]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3.4...v0.3.5
196+
[0.3.4]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3.3...v0.3.4
197+
[0.3.3]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3.2...v0.3.3
198+
[0.3.2]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3.1...v0.3.2
199+
[0.3.1]: https://github.com/aperezdc/ngx-fancyindex/compare/v0.3...v0.3.1

HACKING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Fancy Index module Hacking HOW-TO
2+
3+
## How to modify the template
4+
5+
The template is in the `template.html` file. Note that comment markers are
6+
used to control how the `template.awk` Awk script generates the C header
7+
which gets ultimately included in the compiled object code. Comment markers
8+
have the `<!-- var identifier -->` format. Here `identifier` must be
9+
a valid C identifier. All the text following the marker until the next
10+
marker will be flattened into a C string.
11+
12+
If the identifier is `NONE` (capitalized) the text from that marker up to
13+
the next marker will be discarded.
14+
15+
16+
## Regenerating the C header
17+
18+
You will need Awk. I hope any decent implementation will do, but the GNU one
19+
is known to work flawlessly. Just do:
20+
21+
$ awk -f template.awk template.html > template.h
22+
23+
If your copy of `awk` is not the GNU implementation, you will need to
24+
install it and use `gawk` instead in the command line above.
25+
26+
This includes macOS where the current built-in `awk` (currently version
27+
20070501 at time of testing on 10.13.6) doesn't apply correctly and causes
28+
characters to be omitted from the output. `gawk` can be installed with a
29+
package manager such as [Homebrew](https://brew.sh).

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Redistribution and use in source and binary forms, with or without
2+
modification, are permitted provided that the following conditions
3+
are met:
4+
1. Redistributions of source code must retain the above copyright
5+
notice, this list of conditions and the following disclaimer.
6+
2. Redistributions in binary form must reproduce the above copyright
7+
notice, this list of conditions and the following disclaimer in the
8+
documentation and/or other materials provided with the distribution.
9+
10+
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
11+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
12+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
13+
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
14+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
15+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
16+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
17+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20+
SUCH DAMAGE.

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)