Changeset 3403618
- Timestamp:
- 11/26/2025 06:33:15 PM (3 months ago)
- Location:
- content-update-scheduler
- Files:
-
- 2 edited
- 4 copied
-
tags/3.1.4 (copied) (copied from content-update-scheduler/trunk)
-
tags/3.1.4/content-update-scheduler.php (copied) (copied from content-update-scheduler/trunk/content-update-scheduler.php) (2 diffs)
-
tags/3.1.4/options.php (copied) (copied from content-update-scheduler/trunk/options.php)
-
tags/3.1.4/readme.txt (copied) (copied from content-update-scheduler/trunk/readme.txt) (2 diffs)
-
trunk/content-update-scheduler.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
content-update-scheduler/tags/3.1.4/content-update-scheduler.php
r3398332 r3403618 7 7 * Author: Infinitnet 8 8 * Author URI: https://infinitnet.io/ 9 * Version: 3.1. 39 * Version: 3.1.4 10 10 * License: GPLv3 11 11 * Text Domain: content-update-scheduler … … 910 910 var time = $('#<?php echo esc_js($metaname); ?>_time').val(); 911 911 912 // Trim whitespace from time input 913 if (time) { 914 time = time.trim(); 915 } 916 912 917 // Validate inputs 913 918 if (!month || !day || !year || !time) { 919 $('#invalidmsg').show(); 920 return false; 921 } 922 923 // Validate time format (HH:mm) with regex 924 var timePattern = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/; 925 if (!timePattern.test(time)) { 914 926 $('#invalidmsg').show(); 915 927 return false; -
content-update-scheduler/tags/3.1.4/readme.txt
r3398332 r3403618 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 3.1. 36 Stable tag: 3.1.4 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 86 86 87 87 == Changelog == 88 89 = 3.1.4 = 90 * fix: Add time format validation and trim whitespace 88 91 89 92 = 3.1.3 = -
content-update-scheduler/trunk/content-update-scheduler.php
r3398332 r3403618 7 7 * Author: Infinitnet 8 8 * Author URI: https://infinitnet.io/ 9 * Version: 3.1. 39 * Version: 3.1.4 10 10 * License: GPLv3 11 11 * Text Domain: content-update-scheduler … … 910 910 var time = $('#<?php echo esc_js($metaname); ?>_time').val(); 911 911 912 // Trim whitespace from time input 913 if (time) { 914 time = time.trim(); 915 } 916 912 917 // Validate inputs 913 918 if (!month || !day || !year || !time) { 919 $('#invalidmsg').show(); 920 return false; 921 } 922 923 // Validate time format (HH:mm) with regex 924 var timePattern = /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/; 925 if (!timePattern.test(time)) { 914 926 $('#invalidmsg').show(); 915 927 return false; -
content-update-scheduler/trunk/readme.txt
r3398332 r3403618 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 3.1. 36 Stable tag: 3.1.4 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 86 86 87 87 == Changelog == 88 89 = 3.1.4 = 90 * fix: Add time format validation and trim whitespace 88 91 89 92 = 3.1.3 =
Note: See TracChangeset
for help on using the changeset viewer.