summaryrefslogtreecommitdiff
path: root/cgit.png
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2009-08-17 09:19:05 +0200
committerLars Hjemli <hjemli@gmail.com>2009-08-17 09:24:36 +0200
commit8a631b1173b1abecc5a737b0e21751ddbabf9df2 (patch)
tree93320a0e21c1f13e936ccac66d250b28fa87acc1 /cgit.png
parentfdd559abd6e6ec5e522dc5496b2bcabd36d6ba9d (diff)
downloadcgit-8a631b1173b1abecc5a737b0e21751ddbabf9df2.tar.gz
cgit-8a631b1173b1abecc5a737b0e21751ddbabf9df2.tar.bz2
cgit-8a631b1173b1abecc5a737b0e21751ddbabf9df2.zip
ui-tag.c: do not segfault when id is missing from query-string
The purpose of the tag page is to print info about a specific tag, but if no tag was specified on the query-string cgit used to segfault. With this patch, cgit will fallback to the value of the 'h' parameter instead (which is never NULL due to prepare_repo_cmd() in cgit.c). It will now also verify that the specified tagname is in fact a valid ref in the 'refs/tags/' namespace, i.e. specifying 'id=master' will trigger a 'Bad tag reference' error. Noticed-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
ighlight'> 2022-02-01[Windows] DPI Awareness: SystemRené 'Necoro' Neumann1-2/+2 2022-02-01Revert "[Windows] Remove DPI awareness"René 'Necoro' Neumann1-0/+2 This reverts commit 868e8f7b1649706f0c17a532bad69f6026937954. 2022-02-01[Windows] Remove DPI awarenessRené 'Necoro' Neumann1-2/+0 2022-02-01Fix warningRené 'Necoro' Neumann1-7/+7 2022-02-01Fix icon loadingRené 'Necoro' Neumann1-1/+1 2022-02-01Move resources to own folderRené 'Necoro' Neumann5-4/+4 2022-02-01Icon and better windows dataRené 'Necoro' Neumann6-1/+51 2022-02-01Combo BoxesRené 'Necoro' Neumann2-22/+27 2022-02-01Add windows manifestRené 'Necoro' Neumann3-0/+34 2022-02-01Use our version of giuRené 'Necoro' Neumann2-2/+4 2022-02-01go mod tidyRené 'Necoro' Neumann2-4/+3 2022-02-01Use up2date giuRené 'Necoro' Neumann1-1/+1 2022-02-01GUI: GridLayoutRené 'Necoro' Neumann1-2/+62 2022-01-29[release]: Move checkout to the frontRené 'Necoro' Neumann1-3/+3 2022-01-29[release]: Make Windows build link staticRené 'Necoro' Neumann1-1/+1 2022-01-29[release]: Fix multiple issuesRené 'Necoro' Neumann1-10/+8 2022-01-29Start with a basic GUIRené 'Necoro' Neumann4-2/+73 2022-01-29[release]: Fix github variable syntaxRené 'Necoro' Neumann1-2/+2 2022-01-29Build on windows and linuxRené 'Necoro' Neumann1-6/+9 2022-01-29Build on windows and linuxRené 'Necoro' Neumann1-45/+58 2022-01-25const blockRené 'Necoro' Neumann1-3/+5 2022-01-25Slight restructuringRené 'Necoro' Neumann2-84/+93 2022-01-24Add test stuff to .gitignoreRené 'Necoro' Neumann1-1/+7 2022-01-24Factor out `writeOutput`René 'Necoro' Neumann1-15/+15 2022-01-24Create clubs and participants files also via templateRené 'Necoro' Neumann4-113/+63