<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/filter.c, branch ch/git-2-54</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>https://git.zx2c4.com/cgit/atom/filter.c?h=ch%2Fgit-2-54</id>
<link rel='self' href='https://git.zx2c4.com/cgit/atom/filter.c?h=ch%2Fgit-2-54'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/'/>
<updated>2024-07-16T11:26:10Z</updated>
<entry>
<title>fix building with clang</title>
<updated>2024-07-16T11:26:10Z</updated>
<author>
<name>Denis Pronin</name>
<email>dannftk@yandex.ru</email>
</author>
<published>2024-06-09T06:41:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=fb87de795b9f1b1e21825243716ff1156097adf2'/>
<id>urn:sha1:fb87de795b9f1b1e21825243716ff1156097adf2</id>
<content type='text'>
fix error that is given because of macro overlapping cgit_filter member:

../filter.c:388:10: error: no member named '__fprintf_chk' in
'struct cgit_filter'
  388 |         filter-&gt;fprintf(filter, f, prefix);
      |         ~~~~~~  ^
/usr/include/bits/stdio2.h:92:3: note: expanded from macro 'fprintf'
   92 |   __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
      |   ^
1 error generated.

Signed-off-by: Denis Pronin &lt;dannftk@yandex.ru&gt;
Signed-off-by: Christian Hesse &lt;mail@eworm.de&gt;
</content>
</entry>
<entry>
<title>filter: pipe_fh should be local</title>
<updated>2017-10-14T14:13:07Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2017-10-14T14:13:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=fd069b4ca08cb46eb335a1434330b21fbaf84b9c'/>
<id>urn:sha1:fd069b4ca08cb46eb335a1434330b21fbaf84b9c</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>filter: don't use dlsym unnecessarily</title>
<updated>2015-08-13T13:39:06Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-13T11:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=0c4d76755b98bb597279a1930bf4c69eca7dde62'/>
<id>urn:sha1:0c4d76755b98bb597279a1930bf4c69eca7dde62</id>
<content type='text'>
We only need to hook write() if Lua filter's are in use.  If support has
been disabled, remove the dependency on dlsym().

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Remove redundant includes</title>
<updated>2015-08-13T13:36:53Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-13T11:14:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=157f544ac2149a985b0f62e9381a759c0ae252ec'/>
<id>urn:sha1:157f544ac2149a985b0f62e9381a759c0ae252ec</id>
<content type='text'>
These are all included in git-compat-util.h (when necessary), which we
include in cgit.h.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>Avoid non-ANSI function declarations</title>
<updated>2015-03-09T16:38:30Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-03-08T16:32:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=e3d3fffdd447cdb4551549faae65bae5353a2cab'/>
<id>urn:sha1:e3d3fffdd447cdb4551549faae65bae5353a2cab</id>
<content type='text'>
Sparse says things like:

	warning: non-ANSI function declaration of function 'calc_ttl'

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
</entry>
<entry>
<title>repolist: add owner-filter</title>
<updated>2014-12-24T02:08:20Z</updated>
<author>
<name>Chris Burroughs</name>
<email>chris.burroughs@gmail.com</email>
</author>
<published>2014-08-04T13:23:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=96ceb9a95a7a321209cff347fefd141a9fffc7ca'/>
<id>urn:sha1:96ceb9a95a7a321209cff347fefd141a9fffc7ca</id>
<content type='text'>
This allows custom links to be used for repository owners by
configuring a filter to be applied in the "Owner" column in the
repository list.
</content>
</entry>
<entry>
<title>remove trailing whitespaces from source files</title>
<updated>2014-04-17T10:55:09Z</updated>
<author>
<name>Christian Hesse</name>
<email>mail@eworm.de</email>
</author>
<published>2014-04-17T09:55:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=b431282c91deea24916578395d88084261410968'/>
<id>urn:sha1:b431282c91deea24916578395d88084261410968</id>
<content type='text'>
</content>
</entry>
<entry>
<title>filter: don't forget to reap the auth filter</title>
<updated>2014-01-17T12:53:02Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-17T12:53:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=9786f4613da38cb263e76263370d7816a9347149'/>
<id>urn:sha1:9786f4613da38cb263e76263370d7816a9347149</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>auth: have cgit calculate login address</title>
<updated>2014-01-16T22:21:54Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-16T22:21:54Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=a431326e8fab8153905fbde036dd3c9fb4cc8eaa'/>
<id>urn:sha1:a431326e8fab8153905fbde036dd3c9fb4cc8eaa</id>
<content type='text'>
This way we're sure to use virtual root, or any other strangeness
encountered.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>auth: add basic authentication filter framework</title>
<updated>2014-01-16T01:28:12Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-14T20:49:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=d6e9200cc35411f3f27426b608bcfdef9348e6d3'/>
<id>urn:sha1:d6e9200cc35411f3f27426b608bcfdef9348e6d3</id>
<content type='text'>
This leverages the new lua support. See
filters/simple-authentication.lua for explaination of how this works.
There is also additional documentation in cgitrc.5.txt.

Though this is a cookie-based approach, cgit's caching mechanism is
preserved for authenticated pages.

Very plugable and extendable depending on user needs.

The sample script uses an HMAC-SHA1 based cookie to store the
currently logged in user, with an expiration date.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
</feed>
