about summary refs log tree commit diff
path: root/cmd.h (unfollow)
Commit message (Expand)Author
2016-03-08Renamed repo-specific configuration for enable-html-serving in cgitrc.5.txtMatt Comben
2016-02-26ui-shared: redirect should not exit early for cacheJason A. Donenfeld
2016-02-26about: path_info might not be validJason A. Donenfeld
2016-02-23tabs: do not use target=_blankJason A. Donenfeld
2016-02-23css: fix indentationJason A. Donenfeld
2016-02-23css: use less blurry icon for external linkChristian Hesse
2016-02-23md2html: Do syntax highlighting tooJason A. Donenfeld
2016-02-23git: update to v2.7.2Christian Hesse
2016-02-22ui-plain: fix to show a repo's root directory listing in plain viewJoe Anakata
2016-02-22cmd: redirect empty about/ to homepage or summaryJason A. Donenfeld
2016-02-22ui-shared: add homepage to tabsJason A. Donenfeld
2016-02-08ui-atom: avoid DATE_STRFTIMEJohn Keeping
2016-02-08Avoid DATE_STRFTIME for long/short datesJohn Keeping
2016-02-08ui-stats: cast pointer before checking for zeroJohn Keeping
2016-02-08ui-stats: if we're going to abuse void*, do it safelyJason A. Donenfeld
2016-02-08git: update to v2.7.1Christian Hesse
2016-02-08ui-shared: remove cgit_print_date()John Keeping
2016-02-08ui-atom: use show_date directly for atom datesJohn Keeping
2016-02-08ui-shared: use show_date for footer timestampJohn Keeping
2016-02-08ui: show ages in the originator's timezoneJohn Keeping
2016-02-08ui-{commit,tag}: show dates in originator's timezoneJohn Keeping
2016-02-08ui-shared: add cgit_date_mode()John Keeping
2016-02-08parsing: add timezone to ident structuresJohn Keeping
2016-02-08ui-shared: remove "format" from cgit_print_age()John Keeping
2016-01-18ui-tree: put reverse path in titleJason A. Donenfeld
2016-01-18syntax-highlighting: always use utf-8 to avoid ascii codec issuesJason A. Donenfeld
2016-01-17cache: don't check for match with no keyJohn Keeping
2016-01-17cache: use size_t for string lengthsJohn Keeping
2016-01-17ui-log: handle parse_commit() errorsJohn Keeping
2016-01-14Bump versionJason A. Donenfeld
2016-01-14ui-plain: add enable-html-serving flagJason A. Donenfeld
2016-01-14ui-blob: set CSP just in caseJason A. Donenfeld
2016-01-14ui-blob: always use generic mimetypesJason A. Donenfeld
2016-01-14ui-blob: Do not accept mimetype from userJason A. Donenfeld
2016-01-14ui-shared: prevent malicious filename from injecting headersJason A. Donenfeld
2016-01-14ui-shared: Avoid new line injection into redirect headerJason A. Donenfeld
2016-01-14Fix missing prototype declarationsPeter Colberg
2016-01-13ui-repolist: return HTTP 404 if no repositories foundPeter Colberg
2016-01-13ui-repolist: extract repo visibility criteria to separate functionPeter Colberg
2016-01-13Fix segmentation fault in hc()Lukas Fleischer
2016-01-13git: update to v2.7.0Christian Hesse
2016-01-13ui-repolist: initialize char *buf to NULLChristian Hesse
2015-11-24filter: avoid integer overflow in authenticate_postJason A. Donenfeld
2015-11-12about-formatting.sh: comment text out of dateJason A. Donenfeld
2015-10-12filters: port syntax-highlighting.py to python 3.xChristian Hesse
2015-10-12md2html: the default of stdin works fineJason A. Donenfeld
2015-10-12filters: misc cleanupsJason A. Donenfeld
2015-10-12md2html: use pure pythonJason A. Donenfeld
2015-10-10cache: fix resource leak: close file handle before returnChristian Hesse
2015-10-10ui-atom: fix resource leak: free allocation from cgit_pageurlChristian Hesse
current rowLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-16Make repo header a link to summary pageLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-16Move cgit_print_date into ui-shared, reuse in ui-summaryLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-16Add ui-commit.c + misc ui cleanupsLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-15Add a common commit parserLars Hjemli Make a better commit parser, replacing the ugly one in ui-log.c Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-14Add simple pager to log pageLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-13Add separate makefile-rule to clear current cacheLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-13Remove implementation details from READMELars Hjemli Let README describe the "bigger picture" instead. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-13Small layout adjustments to summary and blob viewLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-13Add display of tree content w/ui-tree.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-12cache_lock: do xstrdup/free on lockfileLars Hjemli Since fmt() uses 8 alternating static buffers, and cache_lock might call cache_create_dirs() multiple times, which in turn might call fmt() twice, after four iterations lockfile would be overwritten by a cachedirectory path. In worst case, this could cause the cachedirectory to be unlinked and replaced by a cachefile. Fix: use xstrdup() on the result from fmt() before assigning to lockfile, and call free(lockfile) before exit. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Don't truncate valid cachefilesLars Hjemli An embarrassing thinko in cgit_check_cache() would truncate valid cachefiles in the following situation: 1) process A notices a missing/expired cachefile 2) process B gets scheduled, locks, fills and unlocks the cachefile 3) process A gets scheduled, locks the cachefile, notices that the cachefile now exist/is not expired anymore, and continues to overwrite it with an empty lockfile. Thanks to Linus for noticing (again). Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move global variables + callback functions into shared.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move functions for generic object output into ui-view.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move log-functions into ui-log.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move repo summary functions into ui-summary.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move functions for repolist output into ui-repolist.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Move common output-functions into ui-shared.cLars Hjemli While at it, replace the cgit_[lib_]error constants with a proper function Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Avoid infinite loops in caching layerLars Hjemli Add a global variable, cgit_max_lock_attemps, to avoid the possibility of infinite loops when failing to acquire a lockfile. This could happen on broken setups or under crazy server load. Incidentally, this also fixes a lurking bug in cache_lock() where an uninitialized returnvalue was used. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Let 'make install' clear all cachefilesLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-11Fix cache algorithm loopholeLars Hjemli This closes the door for unneccessary calls to cgit_fill_cache(). Noticed by Linus. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add version identifier in generated filesLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add license file and copyright noticesLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli