Skip to content
Snippets Groups Projects
  1. Sep 11, 2019
  2. Sep 10, 2019
  3. Sep 09, 2019
  4. Aug 28, 2019
  5. Aug 27, 2019
  6. Aug 26, 2019
  7. Aug 23, 2019
    • Nick Thomas's avatar
      Send TODOs for comments on commits correctly · 1e6765db
      Nick Thomas authored
      At present, the TodoService uses the `:read_project` ability to decide
      whether a user can read a note on a commit. However, commits can have a
      visibility level that is more restricted than the project, so this is a
      security issue.
      
      This commit changes the code to use the `:read_commit` ability in this
      case instead, which ensures TODOs are only generated for commit notes
      if the users can see the commit.
      Verified
      1e6765db
    • Jan Provaznik's avatar
      Re-escape whole HTML content instead of only match · 06a7bcb3
      Jan Provaznik authored
      When we un-escape HTML text to find references in it, we should then
      re-escape the whole text again, not only found matches.
      
      Because we replace matches with milestone/label links (which contain
      HTML tags we don't want to escape again), we re-escape HTML text
      with placeholders instead of these links and then replace placeholders
      in the escaped text.
      06a7bcb3
Loading