ccuffs / ccuffs/intranet

Garantir melhor sanitização de usuário do github

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.