RaspAP/raspap-webgui

[Bug]: Static leases page doesn't allow capital letters for MAC address

Closed this issue · 0 comments

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Issue reporting checklist

Operating System

Raspberry Pi OS (64-bit) Lite Bookworm

Installation method

Pre-built image

Onboard wireless chipset or external adapter?

Onboard wireless chipset

Hardware

Raspberry Pi 3 Model B+

RaspAP version

Latest

Other software or services running with RaspAP?

Yes (specify below)

Contact details (optional)

No response

Bug description

I was trying to add a new client on the static leases page via copy/paste from an old router config, which had the MAC address with capital letters, however when I tried to paste it into the AMC address field, the field would pre-populate with just colons. When I tried to enter it manually (following the case), the same thing happened. It wasn't until I tried with lowercase letters did I find that I was able to input the MAC address.

It's worth noting that modifying the DNSMasq file directly in the OS (in my case, it's /etc/dnsmasq.d/090_wlan1.conf), I was able to paste in the uppercase MAC address, and it correctly rendered in the UI.

Steps to reproduce

See above (try entering MAC address with capital letters into MAC address field on Static leases page under DHCP server).

Screenshots

No response

Additional context

No response

Relevant log output