Commit Graph
3245 Commits
Author SHA1 Message Date
Harsh Singh 2a33f27d7b fix: validStr gives an empty string for an array instead of a TypeError (#8443) 2026-11-27 08:52:31 -05:00
Jash Ambaliya b7385ba41d fix: a zone whose points are not a polygon says why it was not saved instead of redirecting to the zones list refs #8414 (#8415) 2026-11-27 08:41:52 -05:00
73aa1f56f7 fix: filter editor keeps every value of a multi-value Monitor, Server, Storage, Zone or Tags term refs #7271 (#7272)
Co-authored-by: Isaac Connor <isaac@zoneminder.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 08:15:48 -05:00
Jash Ambaliya 03ed383c16 fix: montage layout names are trimmed, so a blank name is refused and padding doesn't get past the preset and duplicate checks refs #7377 (#7378) 2026-11-27 08:15:05 -05:00
Jash Ambaliya 9e2c175b40 fix: reduce request ids to digits before building Report, Group and Control objects refs #7799 (#7800) 2026-11-26 22:33:17 -05:00
Jash Ambaliya b9845ecb18 fix: filter save stops the daemon only after the save succeeds refs #7753 (#7754) 2026-11-26 22:14:14 -05:00
Jash Ambaliya 4444dca629 fix: changes() and array_recursive_diff compare scalar values as strings so 0, null, '10' and '1e1' are not treated as unchanged refs #7773 (#7774) 2026-11-26 22:06:10 -05:00
Jash Ambaliya b8276d104a fix: Monitor stream url and html no longer divide by a zero view width or height refs #7781 (#7782) 2026-11-26 22:04:06 -05:00
Jash Ambaliya b9078d6b2f fix: auth hash cache tracks the age of each address slot separately refs #7823 (#7824) 2026-11-26 21:38:18 -05:00
Jash Ambaliya ec60196a65 fix: monitor action editor refuses array input and unknown trigger or action values refs #7815 (#7816) 2026-11-26 21:35:44 -05:00
Harsh Singh 7c4f7b11db fix: add monitors probe no longer calls curl_close deprecated in PHP 8.5 (#8381) 2026-11-26 19:00:05 -05:00
Harsh Singh ec514eb2d3 fix: forwarded control request reads the reply status from the stream, not $http_response_header deprecated in PHP 8.5 (#8379) 2026-11-26 18:59:49 -05:00
Jash Ambaliya 6989abebb7 fix: a cookie lifetime under a minute no longer regenerates the session on every request or purges every session refs #8372 (#8373) 2026-11-26 18:52:14 -05:00
Harsh Singh 780dc5ec2e fix: database connection no longer reads the PDO::MYSQL_ATTR constants deprecated in PHP 8.5 (#8377) 2026-11-26 18:37:13 -05:00
Jash Ambaliya bcc175a559 fix: ZM_AUTH_HASH_TTL of 0 means 2 hours on the web side, as it does in zms and zmu refs #8366 (#8367) 2026-11-26 17:56:55 -05:00
Harsh Singh 551e8c7140 fix: a failed AI dataset, class or model save shows its error on the options page (#7266) 2026-11-26 17:48:44 -05:00
Jash Ambaliya ddec4c32d2 feat: offer to clone the zones when cloning a monitor refs #2906 (#6666) 2026-11-26 17:47:56 -05:00
Harsh Singh 59c32b78e5 fix: a malformed JSON string no longer raises an undefined variable warning in checkJsonError (#8126) 2026-11-26 08:50:56 -05:00
Harsh Singh b8a31cff94 fix: console Source column shows the file of a File or cURL monitor instead of Monitor N (#8104) 2026-11-26 08:49:43 -05:00
Harsh Singh 799df89af9 fix: a missing conf.d folder no longer raises an undefined variable warning in loadConfigFiles (#8122) 2026-11-26 08:48:57 -05:00
Jash Ambaliya 00a1984092 fix: reports explain a refused save and disable New and Save for users who would be refused refs #8295 (#8296) 2026-11-25 20:42:30 -05:00
Harsh Singh 4974ec75a6 fix: renaming a monitor removes its old name link when the storage path goes through a symlink (#8120) 2026-11-25 20:35:32 -05:00
Jash Ambaliya b5e8459d45 feat: filters can select events by their Videoed, Uploaded, Emailed, Messaged and Executed flags refs #8214 (#8215) 2026-11-25 20:34:02 -05:00
Jash Ambaliya 938ff65491 feat: filter Execute reports whether the filter ran, and zmfilter logs the match count at Info for one-off runs refs #8218 (#8219) 2026-11-25 20:32:12 -05:00
Jash Ambaliya c0e12c3ba2 feat: API creates a snapshot from monitors as the web snapshot action does refs #8208 (#8209) 2026-11-25 20:31:24 -05:00
Jash Ambaliya 5b42f076d0 fix: stream seek and max fps round the fraction to microseconds instead of truncating it (#7396)
* fix: stream seek and max fps round the fraction to microseconds instead of truncating it refs #7395

* fix: seek rounds only the fraction so whole seconds stay within a 32-bit int refs #7395
2026-11-25 20:23:30 -05:00
Harsh Singh f74923c8d5 fix: saving a control capability that no longer exists reports it instead of inserting a new one (#8150) 2026-11-25 18:30:21 -05:00
Jash Ambaliya 6fbbd206a5 fix: saving a user that no longer exists reports it instead of creating a new account refs #8297 (#8298) 2026-11-25 18:20:39 -05:00
Jash Ambaliya b5db3eb59c fix: options save skips config rows marked System refs #7472 (#7473) 2026-11-25 18:19:24 -05:00
Jash Ambaliya d3e800dc5b fix: Groups view shows why a group was not deleted refs #8287 (#8288) 2026-11-25 18:19:01 -05:00
Jash Ambaliya 5ff3e2710a fix: user save accepts a language only as a file name in the lang directory (#7569)
* fix: user save accepts a language only as a file name in the lang directory refs #7568

* fix: API self edit also requires the Language to be a plain name, and an array Language gets the not-saved message refs #7568
2026-11-25 18:18:10 -05:00
Jash Ambaliya 2b51f24923 fix: a password change ends the web sessions that logged in with the old password (#7507)
* fix: a password change ends the web sessions that logged in with the old password refs #7506

* fix: a System edit user changing their own password keeps their session refs #7506
2026-11-25 18:17:11 -05:00
Jash Ambaliya 87e8a9a71d fix: user save stores and checks the filtered Username instead of the typed one refs #7556 (#7557) 2026-11-25 18:16:22 -05:00
Jash Ambaliya 7d0a578ae7 fix: X10 command refuses a key or command containing a semicolon or control character refs #7548 (#7549) 2026-11-25 18:15:29 -05:00
Jash Ambaliya 7fcb9f3dd5 feat: filters can tag the events they match refs #8239 (#8240) 2026-11-25 18:04:02 -05:00
Jash Ambaliya 46a9fdd56b fix: name exports after their owner and refuse downloads of other users' exports (#7463)
* fix: name exports after their owner and refuse downloads of other users' exports refs #7462

* fix: prefix exportEvents archives with the owner prefix so archive.php serves them refs #7462

* test: cover exportEvents to archive.php ownership round trip refs #7462
2026-11-25 18:03:26 -05:00
Jash Ambaliya d74e23c162 fix: Options dnsmasq save refuses directives that run programs or include files and values with line breaks (#7521)
* fix: Options dnsmasq save refuses directives that run programs or include files and values with line breaks refs #7520

* fix: dnsmasq save also refuses conf-script and dumpfile refs #7520
2026-11-25 17:48:32 -05:00
Jash Ambaliya a416073800 feat: monitor save refuses an Ffmpeg source path with no protocol refs #8186 (#8187) 2026-11-25 08:46:40 -05:00
Jash Ambaliya 863565df00 fix: a new camera model typed on the monitor form is looked up under the chosen manufacturer, not by name alone refs #7406 (#7407) 2026-11-25 08:39:08 -05:00
Jash Ambaliya 53a845742a feat: options refuse a zmwatch interval or delay below one second refs #8190 (#8191) 2026-11-25 08:38:46 -05:00
Jash Ambaliya 45e9e4ab76 fix: html_input and filter terms escape their values and attributes (#7459)
* fix: html_input and filter terms escape their values and attributes refs #7458

* fix: filter bar also escapes a term's id, placeholder and Date data-cookie refs #7458
2026-11-25 08:33:32 -05:00
Jash Ambaliya f9bd6bb481 fix: refuse newlines in allow-listed filter commands (#7439)
* fix: refuse newlines in allow-listed filter commands refs #7438

* fix: allow-listed commands also refuse process substitution refs #7438
2026-11-25 08:33:08 -05:00
Jash Ambaliya cd243d72c8 fix: a filter with actions must be limited to monitors its owner can edit (#7421)
* fix: a filter with actions must be limited to monitors its owner can edit refs #7420

* fix: check monitor view instead of edit when limiting filter actions and stub Monitor in user permissions test refs #7420
2026-11-25 08:06:41 -05:00
Pliable PixelsandClaude Opus 5.5 47b4b9ef29 fix: keep ZM_PATH_ZMS public so the API returns it refs #8237 (#8238)
Since 22f94133 loadConfig() marks every zm.conf / conf.d value Private
apart from ZM_DIR_SOUNDS. ZM_PATH_ZMS lives in conf.d, so
/api/configs/viewByName/ZM_PATH_ZMS.json returned an empty Value.
zmNinjaNg reads that value to build live stream URLs and fell back to
<portal>/cgi-bin/nph-zms, which breaks live view on installs with
another path (ZoneMinder/zmNinjaNg#584).

ZM_PATH_ZMS is a URL path the browser already requests, so add it to
$public_file_config.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:48:46 -05:00
Jash Ambaliya a6d9c0acc0 fix: event actions report a failed write instead of auditing and refreshing (#7950)
* fix: event actions report a failed write instead of auditing and refreshing refs #7949

* test: event delete actions rely on deleteEvent returning the delete result refs #7949
2026-11-24 22:32:39 -05:00
Jash Ambaliya 26b0bfc0cc fix: extract_auth_values_from_url keeps a literal + in the username and password refs #8007 (#8008) 2026-11-24 19:43:10 -05:00
Jash Ambaliya 99c5efcf23 fix: Options menu items save keeps the stored value when a field is sent as an array refs #8017 (#8018) 2026-11-24 19:42:54 -05:00
Harsh Singh f45344153d fix: saving a group that no longer exists reports it instead of inserting a new group (#8148) 2026-11-24 19:33:58 -05:00
Harsh Singh 3bcba3f118 fix: saving a filter that no longer exists reports it instead of inserting a new filter (#8154) 2026-11-24 19:31:13 -05:00
Harsh Singh 382d311ec1 fix: the events filter bar lists zones for an Alarmed Zone term instead of raising an undefined variable warning (#8174) 2026-11-24 19:22:56 -05:00