[PR #5624] [MERGED] Fix bug on modifying sshd username #17875

Closed
opened 2025-11-02 16:23:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5624
Author: @MoshiBin
Created: 1/2/2019
Status: Merged
Merged: 1/2/2019
Merged by: @techknowlogick

Base: masterHead: master


📝 Commits (1)

  • 468b022 Fix bug on modifying sshd username

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docker/usr/bin/entrypoint (+1 -1)

📄 Description

Should fix #5623

Since the regex isn't matching the end-of-line, when using a user whose username starts with "git" it will perform an invalid replace (gitea -> giteaea, git-suffix -> git-suffix-suffix).

Matching against EOL should resolve this issue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5624 **Author:** [@MoshiBin](https://github.com/MoshiBin) **Created:** 1/2/2019 **Status:** ✅ Merged **Merged:** 1/2/2019 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`468b022`](https://github.com/go-gitea/gitea/commit/468b022acf2feca752f0e16e4473a1544b2035ef) Fix bug on modifying sshd username ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docker/usr/bin/entrypoint` (+1 -1) </details> ### 📄 Description Should fix #5623 Since the regex isn't matching the end-of-line, when using a user whose username starts with "git" it will perform an invalid replace (gitea -> giteaea, git-suffix -> git-suffix-suffix). Matching against EOL should resolve this issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 16:23:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17875