Garantir melhor sanitização de usuário do github
- Dominant language
- PHP
- Stars
- 8
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
A página de configurações aceita qualquer valor para o campo `github`. Se o usuário informar a URL completa do seu usuário, por exemplo, o sistema tende a se perder em outros locais (como no sistema de sites).
O objetivo é fazer uma sanitização mínima desse campo antes deles ser gravado. Talvez uma regex para garantir que apenas o username do github é salvo, não qualquer url.
Contributor guide
Research direction
Start by locating the settings code that saves the `github` field and then inspect where that value is consumed by the sites system. Verify the current behavior with a full GitHub profile URL and a username. Done means the saved value is limited to the GitHub username format and downstream uses no longer receive the full URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100