]> gitweb.ps.run Git - ps-cgit/blobdiff - html.c
Restrict deep nesting of configfiles
[ps-cgit] / html.c
diff --git a/html.c b/html.c
index 3a5d28d9f7a255320b05755f2e42bc5aec7e520d..175b4b687efb75d443b847738775a1de92e97cf6 100644 (file)
--- a/html.c
+++ b/html.c
@@ -117,6 +117,15 @@ void html_attr(char *txt)
                html(txt);
 }
 
+void html_hidden(char *name, char *value)
+{
+       html("<input type='hidden' name='");
+       html_attr(name);
+       html("' value='");
+       html_attr(value);
+       html("'/>");
+}
+
 void html_link_open(char *url, char *title, char *class)
 {
        html("<a href='");
@@ -149,6 +158,8 @@ void html_filemode(unsigned short mode)
                html("d");
        else if (S_ISLNK(mode))
                html("l");
+       else if (S_ISDIRLNK(mode))
+               html("m");
        else
                html("-");
        html_fileperm(mode >> 6);