Changeset 3073079
- Timestamp:
- 04/18/2024 11:46:30 AM (22 months ago)
- Location:
- pinpointe-form-integration/trunk
- Files:
-
- 3 edited
-
includes/pinpointe-service.class.php (modified) (1 diff)
-
pinpointe-signup-form.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pinpointe-form-integration/trunk/includes/pinpointe-service.class.php
r3070994 r3073079 101 101 $post_data = $dom_output->saveXML($dom_output, LIBXML_NOEMPTYTAG); 102 102 103 $file = WP_PLUGIN_DIR."/pinpointe-form-integration/test.xml";103 $file = dirname(__FILE__, 2) . DIRECTORY_SEPARATOR. "test.xml"; 104 104 $dom_output->save($file); 105 105 -
pinpointe-form-integration/trunk/pinpointe-signup-form.php
r3070994 r3073079 108 108 109 109 // Load scripts/styles conditionally 110 if (isset($_SERVER['QUERY_STRING']) && preg_match('/page=pinpointe/i', $_SERVER['QUERY_STRING']) && !preg_match('/page=pinpointe_lite/i', $_SERVER['QUERY_STRING'])) { 110 $query_string = filter_input(INPUT_SERVER, 'QUERY_STRING', FILTER_SANITIZE_STRING); 111 if (isset($query_string) && preg_match('/page=pinpointe/i', $query_string) && !preg_match('/page=pinpointe_lite/i', $query_string)) { 111 112 add_action('admin_enqueue_scripts', array($this, 'enqueue_admin_scripts_and_styles')); 112 113 } … … 511 512 public function get_current_tab($is_dash = false) 512 513 { 513 $tab = (isset($_GET['tab']) && $this->page_has_tab( $_GET['tab'])) ? preg_replace('/-/', '_', $_GET['tab']) : $this->get_default_tab();514 $tab = (isset($_GET['tab']) && $this->page_has_tab(sanitize_text_field($_GET['tab']))) ? preg_replace('/-/', '_', sanitize_text_field($_GET['tab'])) : $this->get_default_tab(); 514 515 515 516 return (!$is_dash) ? $tab : preg_replace('/_/', '-', $tab); … … 1409 1410 public function options_validate($input) 1410 1411 { 1411 $current_tab = isset($_POST['current_tab']) ? $_POST['current_tab']: 'settings';1412 $current_tab = isset($_POST['current_tab']) ? sanitize_text_field($_POST['current_tab']) : 'settings'; 1412 1413 $output = $original = $this->get_options(); 1413 1414 … … 4681 4682 } 4682 4683 else { 4683 $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];4684 $ip_address = sanitize_text_field($_SERVER['HTTP_X_FORWARDED_FOR']); 4684 4685 } 4685 4686 } 4686 4687 else { 4687 $ip_address = $_SERVER['REMOTE_ADDR'];4688 $ip_address = sanitize_text_field($_SERVER['REMOTE_ADDR']); 4688 4689 } 4689 4690 -
pinpointe-form-integration/trunk/readme.txt
r3070994 r3073079 4 4 Requires at least: 3.5 5 5 Tested up to: 6.4.2 6 Stable tag: 1. 56 Stable tag: 1.6 7 7 Requires PHP: 5.4 8 8 License: GPLv3 or later
Note: See TracChangeset
for help on using the changeset viewer.