Changeset 3090062
- Timestamp:
- 05/21/2024 09:39:42 AM (23 months ago)
- Location:
- snap-pixel
- Files:
-
- 28 added
- 3 edited
-
tags/1.5.8 (added)
-
tags/1.5.8/admin (added)
-
tags/1.5.8/admin/index.php (added)
-
tags/1.5.8/admin/setting-tabs.php (added)
-
tags/1.5.8/admin/snapchat_pixel_backend.php (added)
-
tags/1.5.8/admin/snapchat_pixel_place_code.php (added)
-
tags/1.5.8/assets (added)
-
tags/1.5.8/assets/css (added)
-
tags/1.5.8/assets/css/index.php (added)
-
tags/1.5.8/assets/css/snapchat-pixel-admin.css (added)
-
tags/1.5.8/assets/css/snapchat-pixel.css (added)
-
tags/1.5.8/assets/images (added)
-
tags/1.5.8/assets/images/index.php (added)
-
tags/1.5.8/assets/images/snapchat-pixel.png (added)
-
tags/1.5.8/assets/images/snapchat.png (added)
-
tags/1.5.8/assets/index.php (added)
-
tags/1.5.8/assets/js (added)
-
tags/1.5.8/assets/js/index.php (added)
-
tags/1.5.8/assets/js/snapchat-pixel-admin.js (added)
-
tags/1.5.8/assets/js/snapchat-pixel.js (added)
-
tags/1.5.8/includes (added)
-
tags/1.5.8/includes/function.php (added)
-
tags/1.5.8/includes/index.php (added)
-
tags/1.5.8/index.php (added)
-
tags/1.5.8/languages (added)
-
tags/1.5.8/languages/index.php (added)
-
tags/1.5.8/readme.txt (added)
-
tags/1.5.8/snapchat-pixel.php (added)
-
trunk/admin/snapchat_pixel_backend.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/snapchat-pixel.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
snap-pixel/trunk/admin/snapchat_pixel_backend.php
r2954228 r3090062 27 27 <div class="form-row"> 28 28 <strong><?php echo __('User Email', $this->plugin_name); ?></strong> 29 <input type=" text" name="snapchat_pixel_code[user_email]" class="regular-text"29 <input type="email" name="snapchat_pixel_code[user_email]" class="regular-text" 30 30 value="<?php echo(isset($snapchat_pixel_code['user_email']) ? $snapchat_pixel_code['user_email'] : ''); ?>" placeholder="<?php echo __('User Email', $this->plugin_name); ?>"/> 31 31 <span class="smallfont"><?php __("This user email will be sent with pixels firing", $this->plugin_name); ?></span> -
snap-pixel/trunk/readme.txt
r2954229 r3090062 6 6 Tags: snapchat, snap pixel, snapchat pixel 7 7 Requires at least: 5.0 8 Tested up to: 6. 38 Tested up to: 6.0 9 9 Requires PHP: 5.6 10 Stable tag: 1.5. 710 Stable tag: 1.5.8 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 94 94 = 1.5.7 = 95 95 * Updated the backend UI and fixed some backend fixed 96 = 1.5.8 = 97 * Security fix applied -
snap-pixel/trunk/snapchat-pixel.php
r2954228 r3090062 4 4 * Plugin URI: https://wordpress.org/plugins/snap-pixel 5 5 * Description: Snapchat (Snap Pixel) to measure the cross-device impact of campaigns. It is best suited for your direct response goals, such as driving leads, Subscriptions, or product sales. 6 * Version: 1.5. 76 * Version: 1.5.8 7 7 * Author: Hassan Ali 8 8 * Author URI: https://creativehassan.com … … 198 198 199 199 $sanitized_data = array( 200 'pixel_id' => sanitize_text_field($raw_data['pixel_id']),200 'pixel_id' => $this->sanitize_pixel_id($raw_data['pixel_id']), 201 201 'user_email' => sanitize_email($raw_data['user_email']), 202 202 'homepage' => isset($raw_data['homepage']) && $raw_data['homepage'] === 'checked' ? 'checked' : '', … … 213 213 ); 214 214 215 // Additional sanitization for 'pixel_id' to prevent XSS 216 $sanitized_data['pixel_id'] = esc_attr($sanitized_data['pixel_id']); 217 215 218 update_option('snapchat_pixel_code', $sanitized_data); 216 219 } … … 222 225 echo $content; 223 226 } 227 228 public function sanitize_pixel_id($input) { 229 // Strip out all HTML tags 230 $input = strip_tags($input); 231 // Remove quotes and other special characters 232 $input = sanitize_text_field( $input ); 233 234 $input = preg_replace('/[^a-zA-Z0-9_-]/', '', $input); 235 236 return $input; 237 } 224 238 225 239 /**
Note: See TracChangeset
for help on using the changeset viewer.