Problem: Remote IP camera - password includes a hyphen

Support and queries relating to all previous versions of ZoneMinder
Locked
fcrossen
Posts: 16
Joined: Thu Jun 09, 2005 10:22 am
Location: Dublin, Ireland.

Problem: Remote IP camera - password includes a hyphen

Post by fcrossen »

It seems that there is a problem with the Javascript validation when you goto enter a password into the camera source for a remote IP camera.

eg: user:password-with-hyphen@[ip address]

throws a javascript validation message "Source must be set to a valid ip address or hostname..."
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Possibly hyphens are not included in the character set to check. Unfortunately I can't check at the moment. Does it work if you don't include a hyphen?
Phil
fcrossen
Posts: 16
Joined: Thu Jun 09, 2005 10:22 am
Location: Dublin, Ireland.

Post by fcrossen »

It doesn't happen when the hyphen is removed from the password. No biggie, I just change the password, but thought you'd like a heads-up on a minor bug!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

well i personally would just add it to the wiki and leave it, and say hat certain charecers cannot be used in a password. Like space, - , $% etc
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I think a hyphen is a kosher char so I'll maybe relax the check a bit.
Phil
Locked