1. 22 11月, 2019 1 次提交
  2. 22 10月, 2019 1 次提交
  3. 02 9月, 2019 1 次提交
  4. 21 8月, 2019 1 次提交
    • O
      Avoid exposing unaccessible repo data upon GFM processing · 4daf3dc0
      Oswaldo Ferreira 提交于
      When post-processing relative links to absolute links
      RelativeLinkFilter didn't take into consideration that
      internal repository data could be exposed for users
      that do not have repository access to the project.
      
      This commit solves that by checking whether the user
      can `download_code` at this repository, avoiding any
      processing of this filter if the user can't.
      
      Additionally, if we're processing for a group (
      no project was given), we check if the user can
      read it in order to expand the href as an extra.
      That doesn't seem necessarily a breach now,
      but an extra check doesn't hurt as after all
      the user needs to be able to `read_group`.
      4daf3dc0
  5. 26 7月, 2019 1 次提交
  6. 21 6月, 2019 1 次提交
  7. 14 6月, 2019 1 次提交
  8. 23 1月, 2019 1 次提交
  9. 01 11月, 2018 1 次提交
  10. 29 9月, 2018 1 次提交
  11. 15 3月, 2018 1 次提交
  12. 19 1月, 2018 1 次提交
  13. 11 1月, 2018 1 次提交
  14. 23 12月, 2017 1 次提交
    • S
      Gracefully handle garbled URIs in Markdown · 0faf772b
      Stan Hu 提交于
      There are certain inputs that look like valid URIs that are accepted by URI
      but not Addressable::URI. Handle the case where the latter fails.
      
      Closes #41442
      0faf772b
  15. 22 12月, 2017 1 次提交
  16. 03 8月, 2017 1 次提交
  17. 01 8月, 2017 1 次提交
  18. 27 7月, 2017 1 次提交
  19. 21 6月, 2017 1 次提交
  20. 23 2月, 2017 2 次提交
  21. 26 1月, 2017 1 次提交
  22. 06 12月, 2016 1 次提交
  23. 25 10月, 2016 1 次提交
  24. 05 8月, 2016 1 次提交
  25. 03 8月, 2016 1 次提交
  26. 02 8月, 2016 1 次提交
  27. 26 7月, 2016 1 次提交
  28. 24 7月, 2016 1 次提交
  29. 21 6月, 2016 1 次提交
    • A
      Optimize Banzai::Filter::RelativeLinkFilter · ca696175
      Alejandro Rodríguez 提交于
          A lot of git operations were being repeated, for example, to build a url
          you would ask if the path was a Tree, which would call a recursive routine
          in Gitlab::Git::Tree#where, then ask if the path was a Blob, which would
          call a recursive routine at Gitlab::Git::Blob#find, making reference to
          the same git objects several times. Now we call Rugged::Tree#path, which
          allows us to determine the type of the path in one pass.
      
          Some other minor improvement added, like saving commonly used references
          instead of calculating them each time.
      ca696175
  30. 31 12月, 2015 1 次提交
  31. 15 12月, 2015 1 次提交
  32. 19 11月, 2015 1 次提交