]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
syntax-highlighting.sh: Fix command injection.
[ps-cgit] / ui-repolist.c
index 36c067a3cb22643c6dca3187c6f84c0a73fda53e..dead1bfe5fea732d7bd4444a9873d81b96a8faae 100644 (file)
@@ -257,7 +257,7 @@ void cgit_print_repolist()
 
        if(ctx.qry.sort)
                sorted = sort_repolist(ctx.qry.sort);
-       else
+       else if (ctx.cfg.section_sort)
                sort_repolist("section");
 
        html("<table summary='repository list' class='list nowrap'>");