<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit-70/html.c, branch v0.12</title>
<subtitle>a fork of cgit with a Gopher interface</subtitle>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/'/>
<entry>
<title>ui-shared: prevent malicious filename from injecting headers</title>
<updated>2016-01-14T13:28:37+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-01-14T13:28:37+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=513b3863d999f91b47d7e9f26710390db55f9463'/>
<id>513b3863d999f91b47d7e9f26710390db55f9463</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>html: remove html_status()</title>
<updated>2015-08-14T13:46:51+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-14T11:47:10+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=fb2c71fad23f4f13f56f74a8b79907805ab1b772'/>
<id>fb2c71fad23f4f13f56f74a8b79907805ab1b772</id>
<content type='text'>
This is now unused.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is now unused.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove redundant includes</title>
<updated>2015-08-13T13:36:53+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-08-13T11:14:15+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=157f544ac2149a985b0f62e9381a759c0ae252ec'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>html: avoid using a plain integer as a NULL pointer</title>
<updated>2015-03-09T16:41:14+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2015-03-08T16:32:27+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=438bac6f579dab5b8f64e8ce42b88cfc3f053b28'/>
<id>438bac6f579dab5b8f64e8ce42b88cfc3f053b28</id>
<content type='text'>
Sparse complains about this table because we use the integer zero as the
NULL pointer.  Use this as an opportunity to reformat the table so that
it always contains 8 elements per row, making it easier to see which
values are being set and which are not.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sparse complains about this table because we use the integer zero as the
NULL pointer.  Use this as an opportunity to reformat the table so that
it always contains 8 elements per row, making it easier to see which
values are being set and which are not.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>html: remove redundant htmlfd variable</title>
<updated>2014-01-12T19:15:55+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-01-12T17:13:48+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=fd31aa693077d0eea1b14a7f44ffe29503e2ad59'/>
<id>fd31aa693077d0eea1b14a7f44ffe29503e2ad59</id>
<content type='text'>
This is never changed from STDOUT_FILENO, so just use that value
directly.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is never changed from STDOUT_FILENO, so just use that value
directly.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright information</title>
<updated>2014-01-08T14:10:49+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@crytocrack.de</email>
</author>
<published>2014-01-08T14:10:49+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=f7f26f88755ac6a3b9af4918b51b0d6e7a692c78'/>
<id>f7f26f88755ac6a3b9af4918b51b0d6e7a692c78</id>
<content type='text'>
* Name "cgit Development Team" as copyright holder to avoid listing
  every single developer.

* Update copyright ranges.

Signed-off-by: Lukas Fleischer &lt;cgit@crytocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Name "cgit Development Team" as copyright holder to avoid listing
  every single developer.

* Update copyright ranges.

Signed-off-by: Lukas Fleischer &lt;cgit@crytocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>html.c: die when write fails</title>
<updated>2013-05-22T10:53:06+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-05-18T14:57:03+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=1fec7cd6f817e52a6e55458d584a7a5092ba6aed'/>
<id>1fec7cd6f817e52a6e55458d584a7a5092ba6aed</id>
<content type='text'>
If we fail to write HTML output once, there's no point carrying on so
just write a failure message once and die.  By using Git's die_errno
function we also let the user know in what way the write failed.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we fail to write HTML output once, there's no point carrying on so
just write a failure message once and die.  By using Git's die_errno
function we also let the user know in what way the write failed.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>html.c: add various strbuf and varadic helpers</title>
<updated>2013-04-08T14:10:11+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-07T13:40:50+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=fd00d2f9d6088223f57006949dc6ce7c36316a79'/>
<id>fd00d2f9d6088223f57006949dc6ce7c36316a79</id>
<content type='text'>
This adds the fmtalloc helper, html_txtf, html_vtxtf, and html_attrf.

These takes a printf style format string like htmlf but escapes the
resulting string.  The html_vtxtf variant takes a va_list whereas
html_txtf is variadic.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds the fmtalloc helper, html_txtf, html_vtxtf, and html_attrf.

These takes a printf style format string like htmlf but escapes the
resulting string.  The html_vtxtf variant takes a va_list whereas
html_txtf is variadic.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>html.c: Replace strdup() with xstrdup()</title>
<updated>2013-04-08T13:45:34+00:00</updated>
<author>
<name>Lukas Fleischer</name>
<email>cgit@cryptocrack.de</email>
</author>
<published>2013-04-06T11:30:54+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=3edfd83db61f5dd2f046e6e8c21dfceeae03ed82'/>
<id>3edfd83db61f5dd2f046e6e8c21dfceeae03ed82</id>
<content type='text'>
Use the xstrdup() wrapper which already bails out if strdup() returns a
NULL pointer.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the xstrdup() wrapper which already bails out if strdup() returns a
NULL pointer.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Always #include corresponding .h in .c files</title>
<updated>2013-04-08T13:45:34+00:00</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-04-06T10:37:59+00:00</published>
<link rel='alternate' type='text/html' href='http://ns2.complex-networks.net/cgit-70/commit/?id=8f208794318f83826e98168b8b430f2d9a68bcce'/>
<id>8f208794318f83826e98168b8b430f2d9a68bcce</id>
<content type='text'>
While doing this, remove declarations from header files where the
corresponding definition is declared "static" in order to avoid build
errors.

Also re-order existing headers in ui-*.c so that the file-specific
header always comes immediately after "cgit.h", helping with future
consistency.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While doing this, remove declarations from header files where the
corresponding definition is declared "static" in order to avoid build
errors.

Also re-order existing headers in ui-*.c so that the file-specific
header always comes immediately after "cgit.h", helping with future
consistency.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
</pre>
</div>
</content>
</entry>
</feed>
