Bug in PTZ control code
Posted: Fri Aug 08, 2008 10:29 am
Found in 1.23.3, but most likely present in all previous versions as well.
Diagonal movements do not work ie UpRight, DownLeft etc.
Fix:
file web/zm_actions.php, line 462, replace regexp with
file web/zm_request_control.php, line 596, do the same replacement of regexp.
upd.
I just noticed that in other places Philip used, which probably works as well, but I did not test it.
Diagonal movements do not work ie UpRight, DownLeft etc.
Fix:
file web/zm_actions.php, line 462, replace regexp
Code: Select all
'/^([a-z]+)([A-Z][a-z]+)([A-Z][a-z]+)$/'
Code: Select all
'/^([a-z]+)([A-Z][a-z]+)([A-Z][A-Za-z]+)$/'
upd.
I just noticed that in other places Philip used
Code: Select all
/^([a-z]+)([A-Z][a-z]+)([A-Z][a-z]+)+$/