Changeset 3101342
- Timestamp:
- 06/11/2024 05:39:06 PM (21 months ago)
- Location:
- online-accessibility
- Files:
-
- 90 added
- 12 edited
- 1 copied
-
tags/4.14 (copied) (copied from online-accessibility/trunk)
-
tags/4.14/.git (added)
-
tags/4.14/.git/FETCH_HEAD (added)
-
tags/4.14/.git/HEAD (added)
-
tags/4.14/.git/branches (added)
-
tags/4.14/.git/config (added)
-
tags/4.14/.git/description (added)
-
tags/4.14/.git/hooks (added)
-
tags/4.14/.git/hooks/applypatch-msg.sample (added)
-
tags/4.14/.git/hooks/commit-msg.sample (added)
-
tags/4.14/.git/hooks/fsmonitor-watchman.sample (added)
-
tags/4.14/.git/hooks/post-update.sample (added)
-
tags/4.14/.git/hooks/pre-applypatch.sample (added)
-
tags/4.14/.git/hooks/pre-commit.sample (added)
-
tags/4.14/.git/hooks/pre-merge-commit.sample (added)
-
tags/4.14/.git/hooks/pre-push.sample (added)
-
tags/4.14/.git/hooks/pre-rebase.sample (added)
-
tags/4.14/.git/hooks/pre-receive.sample (added)
-
tags/4.14/.git/hooks/prepare-commit-msg.sample (added)
-
tags/4.14/.git/hooks/push-to-checkout.sample (added)
-
tags/4.14/.git/hooks/sendemail-validate.sample (added)
-
tags/4.14/.git/hooks/update.sample (added)
-
tags/4.14/.git/index (added)
-
tags/4.14/.git/info (added)
-
tags/4.14/.git/info/exclude (added)
-
tags/4.14/.git/logs (added)
-
tags/4.14/.git/logs/HEAD (added)
-
tags/4.14/.git/logs/refs (added)
-
tags/4.14/.git/logs/refs/remotes (added)
-
tags/4.14/.git/logs/refs/remotes/origin (added)
-
tags/4.14/.git/logs/refs/remotes/origin/master (added)
-
tags/4.14/.git/objects (added)
-
tags/4.14/.git/objects/info (added)
-
tags/4.14/.git/objects/pack (added)
-
tags/4.14/.git/objects/pack/pack-6857a0487c02d9bea31fb8c85998c32caa8dc50e.idx (added)
-
tags/4.14/.git/objects/pack/pack-6857a0487c02d9bea31fb8c85998c32caa8dc50e.pack (added)
-
tags/4.14/.git/objects/pack/pack-6857a0487c02d9bea31fb8c85998c32caa8dc50e.rev (added)
-
tags/4.14/.git/refs (added)
-
tags/4.14/.git/refs/heads (added)
-
tags/4.14/.git/refs/remotes (added)
-
tags/4.14/.git/refs/remotes/origin (added)
-
tags/4.14/.git/refs/remotes/origin/master (added)
-
tags/4.14/.git/refs/tags (added)
-
tags/4.14/CHANGELOG.md (modified) (1 diff)
-
tags/4.14/composer.json (added)
-
tags/4.14/composer.lock (added)
-
tags/4.14/includes/classes/Helper.php (modified) (9 diffs)
-
tags/4.14/includes/enqueue.php (modified) (1 diff)
-
tags/4.14/index.php (modified) (2 diffs)
-
tags/4.14/package.json (added)
-
tags/4.14/vendor/foxorm/gibberish-detector/sample/index.php (modified) (1 diff)
-
tags/4.14/vendor/foxorm/gibberish-detector/src/Gibberish.php (modified) (2 diffs)
-
trunk/.git (added)
-
trunk/.git/FETCH_HEAD (added)
-
trunk/.git/HEAD (added)
-
trunk/.git/branches (added)
-
trunk/.git/config (added)
-
trunk/.git/description (added)
-
trunk/.git/hooks (added)
-
trunk/.git/hooks/applypatch-msg.sample (added)
-
trunk/.git/hooks/commit-msg.sample (added)
-
trunk/.git/hooks/fsmonitor-watchman.sample (added)
-
trunk/.git/hooks/post-update.sample (added)
-
trunk/.git/hooks/pre-applypatch.sample (added)
-
trunk/.git/hooks/pre-commit.sample (added)
-
trunk/.git/hooks/pre-merge-commit.sample (added)
-
trunk/.git/hooks/pre-push.sample (added)
-
trunk/.git/hooks/pre-rebase.sample (added)
-
trunk/.git/hooks/pre-receive.sample (added)
-
trunk/.git/hooks/prepare-commit-msg.sample (added)
-
trunk/.git/hooks/push-to-checkout.sample (added)
-
trunk/.git/hooks/sendemail-validate.sample (added)
-
trunk/.git/hooks/update.sample (added)
-
trunk/.git/index (added)
-
trunk/.git/info (added)
-
trunk/.git/info/exclude (added)
-
trunk/.git/logs (added)
-
trunk/.git/logs/HEAD (added)
-
trunk/.git/logs/refs (added)
-
trunk/.git/logs/refs/remotes (added)
-
trunk/.git/logs/refs/remotes/origin (added)
-
trunk/.git/logs/refs/remotes/origin/master (added)
-
trunk/.git/objects (added)
-
trunk/.git/objects/info (added)
-
trunk/.git/objects/pack (added)
-
trunk/.git/objects/pack/pack-6857a0487c02d9bea31fb8c85998c32caa8dc50e.idx (added)
-
trunk/.git/objects/pack/pack-6857a0487c02d9bea31fb8c85998c32caa8dc50e.pack (added)
-
trunk/.git/objects/pack/pack-6857a0487c02d9bea31fb8c85998c32caa8dc50e.rev (added)
-
trunk/.git/refs (added)
-
trunk/.git/refs/heads (added)
-
trunk/.git/refs/remotes (added)
-
trunk/.git/refs/remotes/origin (added)
-
trunk/.git/refs/remotes/origin/master (added)
-
trunk/.git/refs/tags (added)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/composer.json (added)
-
trunk/composer.lock (added)
-
trunk/includes/classes/Helper.php (modified) (9 diffs)
-
trunk/includes/enqueue.php (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
-
trunk/package.json (added)
-
trunk/vendor/foxorm/gibberish-detector/sample/index.php (modified) (1 diff)
-
trunk/vendor/foxorm/gibberish-detector/src/Gibberish.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
online-accessibility/tags/4.14/CHANGELOG.md
r3091769 r3101342 1 1 # Changelog 2 2 All notable changes to this project will be documented in this file. 3 4.14 4 - Changed report data from serialized to json storage 5 - Various security improvements 6 3 7 4.13 4 8 - Various security improvements -
online-accessibility/tags/4.14/includes/classes/Helper.php
r3091769 r3101342 88 88 89 89 foreach($scans AS $scan){ 90 $arr = $wpdb->_real_escape( serialize([]));90 $arr = $wpdb->_real_escape(json_encode([])); 91 91 $wpdb->query($wpdb->prepare("INSERT INTO {$wpdb->prefix}oada_false_positives (scan_id, list) VALUES (%d, %s)", [$scan->scanID, $arr]));// phpcs:ignore 92 92 } … … 99 99 try{ 100 100 //Get list 101 $list = maybe_unserialize(101 $list = json_decode( 102 102 $wpdb->get_results($wpdb->prepare("SELECT list FROM %i WHERE scan_id = %d", [$wpdb->prefix.'oada_false_positives', $scan_id]))[0]->list // phpcs:ignore 103 103 ); … … 105 105 //Add to list 106 106 $list[] = $issue_id; 107 $list = $wpdb->_real_escape( serialize($list));107 $list = $wpdb->_real_escape(json_encode($list)); 108 108 109 109 //Save new list … … 120 120 try{ 121 121 //Get list 122 $list = maybe_unserialize(122 $list = json_decode( 123 123 $wpdb->get_results($wpdb->prepare("SELECT list FROM %i WHERE scan_id = %d", [$wpdb->prefix.'oada_false_positives', $scan_id]))[0]->list // phpcs:ignore 124 124 ); … … 127 127 $key = array_search($issue_id, $list); 128 128 unset($list[$key]); 129 $list = $wpdb->_real_escape( serialize($list));129 $list = $wpdb->_real_escape(json_encode($list)); 130 130 131 131 //Save new list … … 142 142 if($result) { 143 143 144 return maybe_unserialize($result[0]->list);144 return json_decode($result[0]->list); 145 145 } 146 146 return ''; … … 188 188 foreach ($results as $row) { 189 189 $row = (array)$row; 190 $row['page_results'] = maybe_unserialize($row['page_results']);190 $row['page_results'] = json_decode($row['page_results']); 191 191 192 192 $sendBack["errors"] = array_merge($sendBack["errors"], (array)$row['page_results']["errors"]); … … 223 223 foreach ($results as $row) { 224 224 $row = (array)$row; 225 $row['page_results'] = json_decode(wp_json_encode( maybe_unserialize($row['page_results'])), true);225 $row['page_results'] = json_decode(wp_json_encode(json_decode($row['page_results'])), true); 226 226 227 227 if( isset($row['page_results']["errors"])){ … … 266 266 "scanID" => $args->scanID, 267 267 "page" => $args->page, 268 "page_results" => maybe_serialize($args->page_results)268 "page_results" => json_encode($args->page_results) 269 269 )); 270 270 -
online-accessibility/tags/4.14/includes/enqueue.php
r3091769 r3101342 67 67 if(is_null($false_positives)){ 68 68 global $wpdb; 69 $arr = $wpdb->_real_escape( serialize([]));69 $arr = $wpdb->_real_escape(json_encode([])); 70 70 $wpdb->query($wpdb->prepare("INSERT INTO %s (scan_id, list) VALUES (%d, %s)", [$wpdb->prefix.'oada_false_positives', $scan->ID, $arr])); // phpcs:ignore 71 71 $false_positives = []; -
online-accessibility/tags/4.14/index.php
r3091769 r3101342 6 6 * Plugin URI: https://adaplugin.com 7 7 * Description: The most powerful and comprehensive Accessibility Suite. Achieve and maintain ADA/WCAG compliance faster than ever before. Audit, identify, get instruction, and fix. 8 * Version: 4.1 38 * Version: 4.14 9 9 * Author: Ability, Inc 10 10 * Author URI: https://adaplugin.com … … 28 28 "name" => "online-accessibility", 29 29 "name_pretty" => "Accessibility Suite", 30 "version" => "4.1 3",30 "version" => "4.14", 31 31 "file" => __FILE__, 32 32 "path" => plugin_dir_path(__FILE__), -
online-accessibility/tags/4.14/vendor/foxorm/gibberish-detector/sample/index.php
r2333813 r3101342 44 44 function runGibberishTest($matrix_file, $test_file) 45 45 { 46 $matrix = unserialize(file_get_contents($matrix_file));46 $matrix = json_decode(file_get_contents($matrix_file)); 47 47 48 48 echo '<h1>Gibberish Detector</h1>'; -
online-accessibility/tags/4.14/vendor/foxorm/gibberish-detector/src/Gibberish.php
r2333813 r3101342 31 31 return -1; 32 32 } 33 $trained_library = unserialize(file_get_contents($lib_path));33 $trained_library = json_decode(file_get_contents($lib_path)); 34 34 if(is_array($trained_library) === false) 35 35 { … … 159 159 160 160 // save matrix 161 return file_put_contents($lib_path, serialize(array(161 return file_put_contents($lib_path, json_encode(array( 162 162 'matrix' => $log_prob_matrix, 163 163 'threshold' => $threshold, -
online-accessibility/trunk/CHANGELOG.md
r3091769 r3101342 1 1 # Changelog 2 2 All notable changes to this project will be documented in this file. 3 4.14 4 - Changed report data from serialized to json storage 5 - Various security improvements 6 3 7 4.13 4 8 - Various security improvements -
online-accessibility/trunk/includes/classes/Helper.php
r3091769 r3101342 88 88 89 89 foreach($scans AS $scan){ 90 $arr = $wpdb->_real_escape( serialize([]));90 $arr = $wpdb->_real_escape(json_encode([])); 91 91 $wpdb->query($wpdb->prepare("INSERT INTO {$wpdb->prefix}oada_false_positives (scan_id, list) VALUES (%d, %s)", [$scan->scanID, $arr]));// phpcs:ignore 92 92 } … … 99 99 try{ 100 100 //Get list 101 $list = maybe_unserialize(101 $list = json_decode( 102 102 $wpdb->get_results($wpdb->prepare("SELECT list FROM %i WHERE scan_id = %d", [$wpdb->prefix.'oada_false_positives', $scan_id]))[0]->list // phpcs:ignore 103 103 ); … … 105 105 //Add to list 106 106 $list[] = $issue_id; 107 $list = $wpdb->_real_escape( serialize($list));107 $list = $wpdb->_real_escape(json_encode($list)); 108 108 109 109 //Save new list … … 120 120 try{ 121 121 //Get list 122 $list = maybe_unserialize(122 $list = json_decode( 123 123 $wpdb->get_results($wpdb->prepare("SELECT list FROM %i WHERE scan_id = %d", [$wpdb->prefix.'oada_false_positives', $scan_id]))[0]->list // phpcs:ignore 124 124 ); … … 127 127 $key = array_search($issue_id, $list); 128 128 unset($list[$key]); 129 $list = $wpdb->_real_escape( serialize($list));129 $list = $wpdb->_real_escape(json_encode($list)); 130 130 131 131 //Save new list … … 142 142 if($result) { 143 143 144 return maybe_unserialize($result[0]->list);144 return json_decode($result[0]->list); 145 145 } 146 146 return ''; … … 188 188 foreach ($results as $row) { 189 189 $row = (array)$row; 190 $row['page_results'] = maybe_unserialize($row['page_results']);190 $row['page_results'] = json_decode($row['page_results']); 191 191 192 192 $sendBack["errors"] = array_merge($sendBack["errors"], (array)$row['page_results']["errors"]); … … 223 223 foreach ($results as $row) { 224 224 $row = (array)$row; 225 $row['page_results'] = json_decode(wp_json_encode( maybe_unserialize($row['page_results'])), true);225 $row['page_results'] = json_decode(wp_json_encode(json_decode($row['page_results'])), true); 226 226 227 227 if( isset($row['page_results']["errors"])){ … … 266 266 "scanID" => $args->scanID, 267 267 "page" => $args->page, 268 "page_results" => maybe_serialize($args->page_results)268 "page_results" => json_encode($args->page_results) 269 269 )); 270 270 -
online-accessibility/trunk/includes/enqueue.php
r3091769 r3101342 67 67 if(is_null($false_positives)){ 68 68 global $wpdb; 69 $arr = $wpdb->_real_escape( serialize([]));69 $arr = $wpdb->_real_escape(json_encode([])); 70 70 $wpdb->query($wpdb->prepare("INSERT INTO %s (scan_id, list) VALUES (%d, %s)", [$wpdb->prefix.'oada_false_positives', $scan->ID, $arr])); // phpcs:ignore 71 71 $false_positives = []; -
online-accessibility/trunk/index.php
r3091769 r3101342 6 6 * Plugin URI: https://adaplugin.com 7 7 * Description: The most powerful and comprehensive Accessibility Suite. Achieve and maintain ADA/WCAG compliance faster than ever before. Audit, identify, get instruction, and fix. 8 * Version: 4.1 38 * Version: 4.14 9 9 * Author: Ability, Inc 10 10 * Author URI: https://adaplugin.com … … 28 28 "name" => "online-accessibility", 29 29 "name_pretty" => "Accessibility Suite", 30 "version" => "4.1 3",30 "version" => "4.14", 31 31 "file" => __FILE__, 32 32 "path" => plugin_dir_path(__FILE__), -
online-accessibility/trunk/vendor/foxorm/gibberish-detector/sample/index.php
r2333813 r3101342 44 44 function runGibberishTest($matrix_file, $test_file) 45 45 { 46 $matrix = unserialize(file_get_contents($matrix_file));46 $matrix = json_decode(file_get_contents($matrix_file)); 47 47 48 48 echo '<h1>Gibberish Detector</h1>'; -
online-accessibility/trunk/vendor/foxorm/gibberish-detector/src/Gibberish.php
r2333813 r3101342 31 31 return -1; 32 32 } 33 $trained_library = unserialize(file_get_contents($lib_path));33 $trained_library = json_decode(file_get_contents($lib_path)); 34 34 if(is_array($trained_library) === false) 35 35 { … … 159 159 160 160 // save matrix 161 return file_put_contents($lib_path, serialize(array(161 return file_put_contents($lib_path, json_encode(array( 162 162 'matrix' => $log_prob_matrix, 163 163 'threshold' => $threshold,
Note: See TracChangeset
for help on using the changeset viewer.