Branch: refs/heads/ehb54-issue-478 Home: https://github.com/ehb54/us3lims_dbinst Commit: be37439d3776246a1067f4c76078f7115ec4c64d https://github.com/ehb54/us3lims_dbinst/commit/be37439d3776246a1067f4c76078f... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M 2DSA-CG_1.php M 2DSA_1.php M DMGA_1.php M GA_1.php M GA_2.php M PCSA_1.php M admin_edit_projects.php M admin_view_projects.php M data_sharing.php M edit_labs.php M edit_projects.php M edit_users_actions.php M global_menu.php M globaldb_stats.php M header.php M js/2DSA.js M lib/controls.php M lib/motd.php M lib/reports.php M lib/selectboxes.php R lib/slider.php M lib/utility.php M links.php M login.php M mysql_admin.php M newaccount.php M print_version.php M profile.php M queue_setup_1.php M queue_setup_2.php M queue_setup_2_funcs.php M queue_setup_3.php M queue_viewer.php M runID_info.php M supporting_files.php M view_all.php M view_projects.php M view_users.php Log Message: ----------- CSP updates -wip Commit: 93b7682ee8d29978fd010fa317bc33ede1c06c66 https://github.com/ehb54/us3lims_dbinst/commit/93b7682ee8d29978fd010fa317bc3... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M 2DSA-CG_1.php M 2DSA_1.php M DMGA_1.php M GA_1.php M GA_2.php M PCSA_1.php M admin_edit_projects.php M admin_view_projects.php M edit_projects.php M globaldb_stats.php M header.php M links.php M login.php M mysql_admin.php M newaccount.php M print_version.php M queue_setup_1.php M queue_setup_2.php M queue_setup_3.php M supporting_files.php M view_all.php M view_projects.php Log Message: ----------- better class names Commit: 91c68595f12813226194d12eedccd6354b5638ad https://github.com/ehb54/us3lims_dbinst/commit/91c68595f12813226194d12eedccd... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M lib/controls.php M lib/motd.php M lib/utility.php Log Message: ----------- better class names Commit: 1b404cbb0f14802ea8e0da13b22c30dc99b58899 https://github.com/ehb54/us3lims_dbinst/commit/1b404cbb0f14802ea8e0da13b22c3... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: A js/reports_install_change_handlers.js M view_reports.php Log Message: ----------- reports.php - inline script to js file, CSP Commit: 5c465651ff6c08ff38d38136ec025f935dd07b50 https://github.com/ehb54/us3lims_dbinst/commit/5c465651ff6c08ff38d38136ec025... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: A js/reports_lib_changedoctype.js M lib/reports.php Log Message: ----------- reports.php - inline script to js file, CSP Commit: 908fb66af820ad707c27e49f609c50fa754fe164 https://github.com/ehb54/us3lims_dbinst/commit/908fb66af820ad707c27e49f609c5... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: A js/queue_setup_1_selectallcells.js M queue_setup_1.php Log Message: ----------- queue_setup_1.php - inline script to js file, CSP Commit: 94cba07fffd9f7b0a165cf05053f6adfe5d36d6e https://github.com/ehb54/us3lims_dbinst/commit/94cba07fffd9f7b0a165cf05053f6... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: A js/supporting_files_setup.js M supporting_files.php Log Message: ----------- supporting_files.php - inline script to js file, CSP Commit: 80a0386bd9121feb63d10aab9c55442859fbe581 https://github.com/ehb54/us3lims_dbinst/commit/80a0386bd9121feb63d10aab9c554... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M 2DSA-CG_2.php M 2DSA_2.php M PCSA_2.php Log Message: ----------- 2DSA, 2DSA-CG, PCSA _2.php - remove us_submit_prog display scripts - CSP Commit: af2c0f014494142088fe9a021bcd58ccf6f0d736 https://github.com/ehb54/us3lims_dbinst/commit/af2c0f014494142088fe9a021bcd5... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M js/queue_setup_1_selectallcells.js M queue_setup_1.php Log Message: ----------- queue_setup_1.php - fix selectAllCells handler name mismatch, CSP The extracted handler defined SelectAllCells() and the button carried class 'onclick-SelectAllCells', but the delegated listener in us3lims_common js/main.js matches 'onclick-selectAllCells' and calls selectAllCells(). classList.contains() is case-sensitive, so the button was a no-op and the call would have thrown ReferenceError. Align both with the name main.js already uses. Commit: 39216c58d4c0e511fc1ba1570d2a6896ec451b42 https://github.com/ehb54/us3lims_dbinst/commit/39216c58d4c0e511fc1ba1570d2a6... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M GA_2.php Log Message: ----------- GA_2.php - fix solutes validate handler class name, CSP The form carried class 'onsubmit-return-solutes-args' but the delegated submit listener in us3lims_common js/main.js matches 'onsubmit-return-validate-solutes-args'. The form therefore fell through to the default branch and submitted without running validate_solutes(). The data-args payload already matches what main.js expects. Commit: 49595c042e41a23f1415396ffdab8a4a19ce1419 https://github.com/ehb54/us3lims_dbinst/commit/49595c042e41a23f1415396ffdab8... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M view_reports.php Log Message: ----------- view_reports.php - drop stray trailing whitespace at EOF Commit: 5ca612cdec2de9c922d7642998dea342782b11c1 https://github.com/ehb54/us3lims_dbinst/commit/5ca612cdec2de9c922d7642998dea... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M 2DSA-CG_2.php M 2DSA_2.php M DMGA_2.php M GA_2.php M GA_3.php M PCSA_2.php A css/edit_users.css M css/queue_viewer.css A css/view_people_audit.css M edit_users.php M edit_users_actions.php M header.php M js/GA_2.js M js/queue_viewer.js M js/sorttable.js M js/supporting_files_setup.js M queue_content.php M queue_viewer.php M report_detail.php M solution_detail.php M supporting_files.php M view_people_audit.php Log Message: ----------- CSP: eliminate all remaining inline handlers, scripts and styles Brings the tree to zero violations of default-src 'self'. Inline event handlers: - queue_content.php (6): the checkboxes already carried data-runid / data-analtype / data-status / data-gfacid holding exactly the arguments the inline handlers passed, so the new listeners read them straight from the dataset. These must be delegated from the document, not bound directly: update_queue_content() replaces #queue_content wholesale on every poll, so directly bound handlers would be dropped each refresh. - supporting_files.php (9): bound in js/supporting_files_setup.js, which already runs at the bottom of that page. This markup is static, so the controls are bound directly rather than delegated. - queue_viewer.php: dropped $onload, which header.php injected onto <body>; js/queue_viewer.js now starts polling on DOMContentLoaded. It was the only user of the $onload mechanism, so header.php no longer carries it. javascript: URLs: - report_detail.php, solution_detail.php: close links now use the onclick-window-close class. Both build their own <html> and did not load main.js, so they now do. - js/sorttable.js: removed the IE branch that document.write()'s a script element with a javascript URL. It sat inside a JScript conditional compilation block, which no browser has honoured since IE11 dropped it in 2013, so it was already dead everywhere. Inline styles: - edit_users_actions.php (12 identical): .form-section-header in the new css/edit_users.css. - 2DSA_2, 2DSA-CG_2, DMGA_2, GA_3, PCSA_2: red bold error spans now use the shared text-red + font-bold utilities. - queue_content.php: #selection_controls moved to css/queue_viewer.css; the bulk-delete button uses the d-none class, and queue_viewer.js toggles that class instead of calling jQuery show()/hide(). - view_people_audit.php: 62-line inline <style> block extracted to the new css/view_people_audit.css. Also fixes js/GA_2.js, which contained a raw <?php echo $sol_count; ?>. The file is served statically as .js, so the tag was never executed -- it reached the browser verbatim and made the whole script a syntax error, leaving get_solute_count() and validate_solutes() undefined on GA_2.php. Both are targets of delegated CSP handlers, so the conversion could not have worked there. The rendered count now arrives via a data-rendered-count attribute on #sol. Commit: 95d9845d673f6ea31be2cfac763251391e19d5ea https://github.com/ehb54/us3lims_dbinst/commit/95d9845d673f6ea31be2cfac76325... Author: aaron-auc <aaron@aucsolutions.com> Date: 2026-09-28 (Mon, 28 Sep 2026) Changed paths: M js/reports.js R js/reports_lib_changedoctype.js M lib/reports.php Log Message: ----------- Delegate report filters without evaluating scripts in AJAX fragments Compare: https://github.com/ehb54/us3lims_dbinst/compare/4703e6671c70...95d9845d673f To unsubscribe from these emails, change your notification settings at https://github.com/ehb54/us3lims_dbinst/settings/notifications