mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #783] Trim Whitespace #661
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#661
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jjtroberts on GitHub (Dec 18, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/783
Is your feature request related to a problem? Please describe.
I errantly copied and pasted a trailing whitespace into a redirection host destination field which resulted in an invalid nginx config because the whitespace broke the expected syntax of the nginx redirect directive:
I am also able to paste a full URL with the scheme and it is accepted even though it would result in an invalid redirect.
Describe the solution you'd like
I am attempting to provide a self-service redirection portal to less-technical users and adding blocking input validation checks prior to submission will likely alleviate future pain. A regex input validation step would be tremendously helpful in filtering out some of the inappropriate input that less-technical users will likely copy and paste into that field.
I'm not a JS developer, but perhaps something like Backbone.Validation would help.
Describe alternatives you've considered
npm is a blessing and thank you for providing it. I understand you are not compensated for your efforts. We could probably get by with training our staff to look for whitespace and scheme prior to submitting a redirect. However it would help me sleep better at night knowing they can't easily break the nginx config and require an engineer to log in and repair it.
Additional context

@github-actions[bot] commented on GitHub (Mar 22, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@fgiering commented on GitHub (Jun 3, 2024):
keep it open
@github-actions[bot] commented on GitHub (May 2, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@fgiering commented on GitHub (May 2, 2025):
👍🏼
@github-actions[bot] commented on GitHub (Jan 2, 2026):
Issue is now considered stale. If you want to keep it open, please comment 👍
@jjtroberts commented on GitHub (Jan 2, 2026):
👍
@jjtroberts commented on GitHub (Jan 2, 2026):
👍
@fgiering commented on GitHub (Jan 2, 2026):
👍