1. 28 Oct, 2021 4 commits
  2. 25 Oct, 2021 4 commits
    • zeripath's avatar
      Prevent panic in serv.go with Deploy Keys (#17434) (#17435) · dd1ba34e
      zeripath authored
      
      Backport #17434
      
      Unfortunately there was a regression in #17373 which missed that the user is not
      for deploy keys. This leads to a panic when pushing with deploy keys.
      
      Fix #17412
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      dd1ba34e
    • KN4CK3R's avatar
      Fix CSV render error (#17406) (#17431) · 1fbdf96c
      KN4CK3R authored
      
      Backport #17406.
      
      Closes #17378 
      
      Both errors from #17378 were caused by  #15175.
      
      Problem 1 (error with added file):
      `ToUTF8WithFallbackReader` creates a `MultiReader` from a `byte[2048]` and the remaining reader. `CreateReaderAndGuessDelimiter` tries to read 10000 bytes from this reader but only gets 2048 because that's the first reader in the `MultiReader`. Then the `if size < 1e4` thinks the input is at EOF and just returns that.
      
      Problem 2 (error with changed file):
      The blob reader gets defer closed. That was fine because the old version reads the whole file into memory. Now with the streaming version the close needs to defer after the method.
      Co-authored-by: default avatarzeripath <art27@cantab.net>
      1fbdf96c
    • KN4CK3R's avatar
      Read expected buffer size (#17409) (#17430) · 51590552
      KN4CK3R authored
      Backport of #17409
      
      * Read expected buffer size.
      
      * Changed name.
      51590552
    • wxiaoguang's avatar
      Fix markdown checkbox rendering (#17427) · 06da10b9
      wxiaoguang authored
      We allow to render empty check list item - [ ], while GitHub doesn't allow.
      
      To make the rendering correct, we need tune the UI (the last PR #17413 uses absolute layout, which makes the empty checkbox item can not be displayed correctly)
      06da10b9
  3. 23 Oct, 2021 1 commit
  4. 21 Oct, 2021 4 commits
    • zeripath's avatar
      Changelog 1.15.5 (#17392) · 3aecea2e
      zeripath authored
      
      * SECURITY
        * Upgrade Bluemonday to v1.0.16 (#17372) (#17374)
        * Ensure correct SSH permissions check for private and restricted users (#17370) (#17373)
      * BUGFIXES
        * Prevent NPE in CSV diff rendering when column removed (#17018) (#17377)
        * Offer rsa-sha2-512 and rsa-sha2-256 algorithms in internal SSH (#17281) (#17376)
        * Don't panic if we fail to parse U2FRegistration data (#17304) (#17371)
        * Ensure popup text is aligned left (backport for 1.15) (#17343)
        * Ensure that git daemon export ok is created for mirrors (#17243) (#17306)
        * Disable core.protectNTFS (#17300) (#17302)
        * Use pointer for wrappedConn methods (#17295) (#17296)
        * AutoRegistration is supposed to be working with disabled registration (backport) (#17292)
        * Handle duplicate keys on GPG key ring (#17242) (#17284)
        * Fix SVG side by side comparison link (#17375) (#17391)
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      3aecea2e
    • zeripath's avatar
      Fix SVG side by side comparison link (#17375) (#17391) · cae8c635
      zeripath authored
      
      Backport #17375
      
      Define unique names for image tabs in pull requests, in order to toggle tabs correctly when multiple are displayed on one page.
      
      Fixes position of swipe-bar so it does not overlay other UI components when scrolling.
      Signed-off-by: default avatarMario Lubenka <mario.lubenka@googlemail.com>
      Co-authored-by: default avatarMario Lubenka <mario.lubenka@googlemail.com>
      cae8c635
    • zeripath's avatar
      Offer rsa-sha2-512 and rsa-sha2-256 algorithms in internal SSH (#17281) (#17376) · 8ace5c11
      zeripath authored
      
      Backport #17281
      
      There is a subtle bug in the SSH library x/crypto/ssh which makes the incorrect
      assumption that the public key type is the same as the signature algorithm type.
      
      This means that only ssh-rsa signatures are offered by default.
      
      This PR adds a workaround around this problem.
      
      Fix #17175
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      Co-authored-by: default avatartechknowlogick <techknowlogick@gitea.io>
      8ace5c11
    • Lunny Xiao's avatar
      Fix heatmap test (#17381) (#17383) · a87b8139
      Lunny Xiao authored
      Backport #17381
      a87b8139
  5. 20 Oct, 2021 4 commits
  6. 18 Oct, 2021 1 commit
  7. 17 Oct, 2021 1 commit
  8. 14 Oct, 2021 1 commit
  9. 13 Oct, 2021 1 commit
    • zeripath's avatar
      Disable core.protectNTFS (#17300) (#17302) · 9c2b7a19
      zeripath authored
      
      Backport #17300
      
      core.protectNTFS protects NTFS from files which may be difficult to remove or interact
      with using the win32 api, however, it also appears to prevent such files from
      being entered into the git indexes - fundamentally causing breakages with PRs that
      affect these files. However, deliberately setting this to false may cause security
      issues due to the remain sparse checkout of files in the merge pipeline.
      
      The only sensible option therefore is to provide an optional setting which admins
      could set which would forcibly switch this off if they are affected by this issue.
      
      Fix #17092
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      9c2b7a19
  10. 12 Oct, 2021 2 commits
  11. 11 Oct, 2021 1 commit
  12. 08 Oct, 2021 4 commits
  13. 07 Oct, 2021 5 commits
  14. 05 Oct, 2021 1 commit
  15. 01 Oct, 2021 1 commit
  16. 30 Sep, 2021 2 commits
  17. 29 Sep, 2021 1 commit
  18. 28 Sep, 2021 2 commits