Skip to content
Snippets Groups Projects

Strip forward slashes in UiHelperTrait::buildUrl().

1 unresolved thread

Closes #3440424

Merge request reports

Members who can merge are allowed to add commits.

Merged results pipeline #146364 passed

Merged results pipeline passed for e6d6f83f

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
300 300 $length = strlen($base_path);
301 301 if (substr($path, 0, $length) === $base_path) {
302 302 $path = substr($path, $length);
303 // Additionally strip any forward slashes.
304 if (strlen($path) > 1) {
305 $path = ltrim($path, '/');
306 }
303 307 }
  • Alex Pott added 1 commit

    added 1 commit

    • 4cad580a - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Alex Pott added 9 commits

    added 9 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading