about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-10-12 16:47:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2015-10-12 16:47:47 +0200
commitc301899112b2a0559e0f65e3b371a907e9e5c097 (patch)
tree9ce6cc660d33403aa5a4e9223cd0ca3a2e2da2ea
parentmd2html: use pure python (diff)
downloadcgit-pink-c301899112b2a0559e0f65e3b371a907e9e5c097.tar.gz
cgit-pink-c301899112b2a0559e0f65e3b371a907e9e5c097.zip
filters: misc cleanups
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-xfilters/html-converters/man2html1
-rwxr-xr-xfilters/html-converters/rst2html2
2 files changed, 1 insertions, 2 deletions
diff --git a/filters/html-converters/man2html b/filters/html-converters/man2html
index 1b28437..0ef7884 100755
--- a/filters/html-converters/man2html
+++ b/filters/html-converters/man2html
@@ -2,4 +2,3 @@
 echo "<div style=\"font-family: monospace\">"
 groff -mandoc -T html -P -r -P -l | egrep -v '(<html>|<head>|<meta|<title>|</title>|</head>|<body>|</body>|</html>|<!DOCTYPE|"http://www.w3.org)'
 echo "</div>"
-
diff --git a/filters/html-converters/rst2html b/filters/html-converters/rst2html
index 756a4e1..02d90f8 100755
--- a/filters/html-converters/rst2html
+++ b/filters/html-converters/rst2html
@@ -1,2 +1,2 @@
 #!/bin/bash
-rst2html.py --template <(echo -e "%(stylesheet)s\n%(body_pre_docinfo)s\n%(docinfo)s\n%(body)s")
+exec rst2html.py --template <(echo -e "%(stylesheet)s\n%(body_pre_docinfo)s\n%(docinfo)s\n%(body)s")
'>parsing: ban sprintf()Christian Hesse Git upstream bans sprintf() with commit: banned.h: mark sprintf() as banned cc8fdaee1eeaf05d8dd55ff11f111b815f673c58 Signed-off-by: Christian Hesse <mail@eworm.de> 2018-09-11parsing: ban strncpy()Christian Hesse Git upstream bans strncpy() with commit: banned.h: mark strncpy() as banned e488b7aba743d23b830d239dcc33d9ca0745a9ad Signed-off-by: Christian Hesse <mail@eworm.de> 2018-08-28filters: generate anchor links from markdownChristian Hesse This makes the markdown filter generate anchor links for headings. Signed-off-by: Christian Hesse <mail@eworm.de> Tested-by: jean-christophe manciot <actionmystique@gmail.com> 2018-08-03Bump version.Jason A. Donenfeld Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2018-08-03clone: fix directory traversalJason A. Donenfeld This was introduced in the initial version of this code, way back when in 2008. $ curl http://127.0.0.1/cgit/repo/objects/?path=../../../../../../../../../etc/passwd root:x:0:0:root:/root:/bin/sh ... Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Reported-by: Jann Horn <jannh@google.com> 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev