• Stan Hu's avatar
    Fix errors when pushing with an expired license · a4ef92d2
    Stan Hu authored
    When a user pushed to a GitLab EE license that had an expired license,
    it would fail with one of two errors:
    
    In the current GitLab 13.1 branch it would show:
    
    ```
    undefined method `license_message' for LicenseHelper:Module
    ```
    
    However, previous versions would show:
    
    ```
    undefined method `full_sanitizer' for Gitlab::GitAccess:Class
    ```
    
    The latter error occurred because the view helper strip_tags only works
    in a view. We now explicitly define `strip_tags` to use the same
    sanitizer.
    
    Closes https://gitlab.com/gitlab-org/gitlab/-/issues/217031
    a4ef92d2
git_access_spec.rb 28.9 KB