Changeset 3737024
- Timestamp:
- 10/09/2026 03:50:41 PM (2 weeks ago)
- Location:
- w3mypq/tags/3.2.6
- Files:
-
- 3 edited
-
js/w3mypq.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-w3mypq.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
w3mypq/tags/3.2.6/js/w3mypq.js
r3736999 r3737024 859 859 let sendMails = await recipientsSendEmails(uidsAry, sendToServer.download_link); 860 860 861 if (sendMails && sendMails.message) { 862 alert(sendMails.message); 863 } else { 864 alert("Operation processed: Notification routine completed."); 865 } 866 867 861 868 dl.style.display = "block"; 862 869 dl.href = u; … … 948 955 formData.append('total_chunks', totalChunks); 949 956 formData.append('w3_encrypted_payload', blobSlice, 'data.w3mypq'); 957 formData.append('totPayload_size', encryptedContent.size); 950 958 951 959 if (progressTextEl) { -
w3mypq/tags/3.2.6/readme.txt
r3736999 r3737024 5 5 Requires at least: 6.2 6 6 Tested up to: 7.1 7 Stable tag: 3.2. 57 Stable tag: 3.2.6 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 149 149 150 150 = 3.2.6 = 151 * Release Date: 08 Oct 2026 152 Fix: Set drawer element .w3mypq-trigger as - display:none; - by default into w3mypq.css. 153 151 * Release Date: 09 Oct 2026 152 Fix: Update `wp-w3mypq.php` (and `w3mypq.js` ) to check that the full payload does not exceed the remaining daily quota, so as to prevent exhausting it unnecessarily, within the w3myPQ flow (previously only applied to BPQ endpoint). 153 Note: If the `w3mypq.js` file is not updated due to browser caching, the `wp-w3mypq.php` code will fall back to its previous behavior, exhausting the user's quota in the event of a large and then failed payload. 154 Security: Fix `function w3mypq_handle_incoming_rest_payload` on `wp-w3mypq.php`, avoid to send an empty metadata field to trigger a true match against an empty or expired database transient token. 155 UI-Fix: Added server-response alert message handling to the Php send_emails callback inside `w3mypq.js`. 156 Default theme: Set drawer element `.w3mypq-trigger` as - display:none; - by default into `w3mypq.css`. 154 157 155 158 = 3.2.5 = -
w3mypq/tags/3.2.6/wp-w3mypq.php
r3736999 r3737024 4 4 * Plugin URI: http://www.axew3.com/w3 5 5 * Description: Post-quantum encryption, decryption, ML-KEM, AES-GCM, ML-DSA, file sharing, keys vault, and WordPress shield. 6 * Version: 3.2. 56 * Version: 3.2.6 7 7 * Author: axewww 8 8 * Author URI: http://www.axew3.com … … 640 640 $stored_token = get_transient($w3_session_key); 641 641 642 if ( empty($stored_token) || $stored_token !== $provided_token) {642 if ( empty($stored_token) || empty($provided_token) || $stored_token !== $provided_token ) { 643 643 return new WP_REST_Response(array( 644 644 'status' => 'error', … … 1132 1132 $permalink = isset( $params['w3_mypqPermalink'] ) ? esc_url_raw( $params['w3_mypqPermalink'] ) : home_url(); 1133 1133 $uid = absint( get_current_user_id() ); 1134 $totPayload_size = intval( $params['totPayload_size'] ); 1134 // Set to 0 by default, so if it not exist it will exhaust the user's daily quota, behaving exactly as it did before. 1135 $totPayload_size = !empty( $params['totPayload_size'] ) ? intval( $params['totPayload_size'] ) : 0; 1135 1136 1136 1137 // Extract Chunk Metadata Parameters Safely … … 1173 1174 $is_quota_exceeded = ( $current_usage_bytes_logged + $current_chunk_size ) > $quota_max_allowed_bytes; 1174 1175 } 1175 1176 1177 // Check that the full payload does not exceed the remaining quota so as to prevent exhausting it with a failed upload. 1178 1179 $current_usage_bytes_logged = round($current_usage_bytes_logged / 1048576, 2); 1180 $totPayload_size = round($totPayload_size / 1048576, 2); 1181 1176 1182 $remaining_quota = $daily_quota_setting_mb - $current_usage_bytes_logged; 1177 1178 file_put_contents('D:\Edit1', "$daily_quota_setting_mb - $current_usage_bytes_logged - $totPayload_size"); 1179 1183 1180 1184 if ( $totPayload_size > $remaining_quota ) 1181 1185 {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)