Skip to content

Accept GitHub source highlight URL argument format

What does this MR do?

This MR enhances the URL processing logic responsible for parsing source code line ranges used in highlighting so that it supports the following formats:

Format Description
<file URL>?L<starting line number>-<ending line number> existing format
<file URL>?L<starting line number>-L<ending line number> new format (used e.g. by GitHub)

Screenshots (strongly suggested)

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #335194 (closed)

Merge request reports

Loading