Leading spaces are permitted in ProxyAuth domains #321

Closed
opened 2026-03-05 15:49:47 -06:00 by superuser-does · 2 comments
superuser-does commented 2026-03-05 15:49:47 -06:00 (Migrated from github.com)
Bug description

It is possible to accidentally enter leading whitespace in a domain name which will cause resolution to fail.

It took me far too long to debug and would be good to address, probably at the input stage on the client-side.

To reproduce
  1. As auth_admin, visit the ProxyAuth Domains dashboard
  2. Select Create ProxyAuth Domain
  3. Enter domain with leading whitespace in the Domain field
  4. Click Create
  5. Try to visit the domain
Expected behaviour
Any leading whitespace should be automatically trimmed.
Actual behaviour
Leading whitespace remains in the domain name
Database Driver
SQLite
<dl> <dt>Bug description</dt> <dd><p>It is possible to accidentally enter leading whitespace in a domain name which will cause resolution to fail.</p><p>It took me far too long to debug and would be good to address, probably at the input stage on the client-side.</p></dd> <dt>To reproduce</dt> <dd> <ol> <li>As <code>auth_admin</code>, visit the <kbd>ProxyAuth Domains</kbd> dashboard</li> <li>Select <kbd>Create ProxyAuth Domain</kbd></li> <li>Enter domain with leading whitespace in the <samp>Domain</samp> field</li> <li>Click <kbd>Create</kbd></li> <li>Try to visit the domain</li> </dd> <dt>Expected behaviour</dt> <dd>Any leading whitespace should be automatically trimmed.</dd> <dt>Actual behaviour</dt> <dd>Leading whitespace remains in the domain name</dd> <dt>Database Driver</dt> <dd>SQLite</dd> </dl>
notquitenothing commented 2026-03-14 21:03:57 -05:00 (Migrated from github.com)

This should be fixed in v1.10.0

This should be fixed in [v1.10.0](https://github.com/voidauth/voidauth/releases/tag/v1.10.0)
superuser-does commented 2026-03-15 04:50:37 -05:00 (Migrated from github.com)

Thank you! It's merged in so I'll close this issue.

Thank you! It's merged in so I'll close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adam/gate#321
No description provided.