<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/filters, branch lf/filter</title>
<subtitle>my cgit fork
</subtitle>
<id>http://g.freya.cat/cgit/atom?h=lf%2Ffilter</id>
<link rel='self' href='http://g.freya.cat/cgit/atom?h=lf%2Ffilter'/>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/'/>
<updated>2014-01-14T01:00:07Z</updated>
<entry>
<title>filter: add page source to email filter</title>
<updated>2014-01-14T01:00:07Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-13T15:24:40Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=786609bd36c07b85dbf905fc8c36eba7132122d7'/>
<id>urn:sha1:786609bd36c07b85dbf905fc8c36eba7132122d7</id>
<content type='text'>
Since the email filter is called from lots of places, the script might
benefit from knowing the origin. That way it can modify its contents
and/or size depending.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>filter: add gravatar scripts</title>
<updated>2014-01-14T01:00:07Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2014-01-10T05:17:09Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=e942a1622bddf3338096393c3906c1adc871d198'/>
<id>urn:sha1:e942a1622bddf3338096393c3906c1adc871d198</id>
<content type='text'>
The lua one is hugely faster than the python one, but both are included
for comparison.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>filters: Improved syntax-highlighting.py</title>
<updated>2014-01-13T21:48:51Z</updated>
<author>
<name>Stefan Tatschner</name>
<email>stefan@sevenbyte.org</email>
</author>
<published>2014-01-13T21:10:45Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=ceffeb5d52609a38c5d5d410456d796673fe8461'/>
<id>urn:sha1:ceffeb5d52609a38c5d5d410456d796673fe8461</id>
<content type='text'>
- Switched back to python2 according to a problem in pygments with python3.
  With the next release of pygments this problem should be fixed.
  Issue see here:
  https://bitbucket.org/birkenfeld/pygments-main/issue/901/problems-with-python3
- Just read the stdin, decode it to utf-8 and ignore unknown signs. This ensures
  that even destroyed files do not cause any errors in the filter.
- Improved language guessing:
  -&gt; At first use guess_lexer_for_filename for a better detection of the used
     programming languages (even mixed cases will be detected, e.g. php + html).
  -&gt; If nothing was found look if there is a shebang and use guess_lexer.
  -&gt; As default/fallback choose TextLexer.

Signed-off-by: Stefan Tatschner &lt;stefan@sevenbyte.org&gt;
</content>
</entry>
<entry>
<title>Fix UTF-8 with syntax-highlighting.py</title>
<updated>2014-01-08T15:49:42Z</updated>
<author>
<name>Přemysl Janouch</name>
<email>p.janouch@gmail.com</email>
</author>
<published>2013-09-11T18:10:12Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=b6da53dd75a662f9a72163bc0f7052b5aa0d8d19'/>
<id>urn:sha1:b6da53dd75a662f9a72163bc0f7052b5aa0d8d19</id>
<content type='text'>
Previously the script tried to encode output from Pygments with
the ASCII codec, which failed.

Signed-off-by: Přemysl Janouch &lt;p.janouch@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix about-formatting.sh</title>
<updated>2014-01-08T15:46:51Z</updated>
<author>
<name>Přemysl Janouch</name>
<email>p.janouch@gmail.com</email>
</author>
<published>2013-09-11T18:10:11Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=f1fb521a0510cebb4971adf86de39d01cc316df2'/>
<id>urn:sha1:f1fb521a0510cebb4971adf86de39d01cc316df2</id>
<content type='text'>
dash failed to parse the script.

Signed-off-by: Přemysl Janouch &lt;p.janouch@gmail.com&gt;
</content>
</entry>
<entry>
<title>filters: highlight.sh: add css comments for highlight 2.6 and 3.8</title>
<updated>2014-01-08T15:41:26Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2013-11-09T19:34:55Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=09a28d761e1776329ec844916b72b8ae8c030e4b'/>
<id>urn:sha1:09a28d761e1776329ec844916b72b8ae8c030e4b</id>
<content type='text'>
v2: add highlight 3.13 as present on Fedora 19

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
</content>
</entry>
<entry>
<title>filters: toggle perl utf8 situation</title>
<updated>2013-05-28T05:55:40Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2013-05-28T05:55:40Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=6d6f8bdeed0b47422337c430fdaf236b978f6c44'/>
<id>urn:sha1:6d6f8bdeed0b47422337c430fdaf236b978f6c44</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>filters: import more modern scripts</title>
<updated>2013-05-27T19:54:16Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2013-05-27T19:39:43Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=8149be213f1c8f52b0dbe6c213f6073af57fa954'/>
<id>urn:sha1:8149be213f1c8f52b0dbe6c213f6073af57fa954</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>syntax-highlighting.sh: Fix command injection.</title>
<updated>2012-10-28T02:05:50Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2012-10-28T02:03:41Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=7ea35f9f8ecf61ab42be9947aae1176ab6e089bd'/>
<id>urn:sha1:7ea35f9f8ecf61ab42be9947aae1176ab6e089bd</id>
<content type='text'>
By not quoting the argument, an attacker with the ability to add files
to the repository could pass arbitrary arguments to the highlight
command, in particular, the --plug-in argument which can lead to
arbitrary command execution.

This patch adds simple argument quoting.
</content>
</entry>
<entry>
<title>syntax-highlight: when the file has no extension, assume text</title>
<updated>2012-10-09T11:19:12Z</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2012-10-09T11:10:48Z</published>
<link rel='alternate' type='text/html' href='http://g.freya.cat/cgit/commit/?id=d14faf4424ae06ced696c15f205c85fe55b8e6e7'/>
<id>urn:sha1:d14faf4424ae06ced696c15f205c85fe55b8e6e7</id>
<content type='text'>
There are 2 situations:
1- empty extension: assuming text is better than highlight
   producing no output because of a missing argument.
2- no extension at all: assuming text is better than setting
   the extension to the filename, which is what now happens.

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
</content>
</entry>
</feed>
