Changeset 3321077
- Timestamp:
- 07/02/2025 09:34:00 AM (9 months ago)
- Location:
- tealium/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
tealium.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tealium/trunk/readme.txt
r3320962 r3321077 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.8.1 7 Stable tag: 2.1. 197 Stable tag: 2.1.20 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 112 112 == Changelog == 113 113 114 = 2.1.20 = 115 * Alter sanitization method following feedback from Patchstack 116 114 117 = 2.1.19 = 115 118 * PHP 8 bugfix … … 220 223 == Upgrade Notice == 221 224 225 = 2.1.20 = 226 Alter sanitization method following feedback from Patchstack 227 222 228 = 2.1.19 = 223 229 PHP8 Bugfix -
tealium/trunk/tealium.php
r3320962 r3321077 4 4 Plugin URI: http://tealium.com 5 5 Description: Adds the Tealium tag and creates a data layer for your WordPress site. 6 Version: 2.1. 196 Version: 2.1.20 7 7 Author: Ian Hampton 8 8 Author URI: http://tealium.com … … 99 99 $currentScreen = get_current_screen(); 100 100 $tealiumTagCode = get_option( 'tealiumTagCode' ); 101 $tealiumAccount = sanitize_text_field( get_option( 'tealiumAccount' ) );102 $tealiumProfile = sanitize_text_field( get_option( 'tealiumProfile' ) );103 $tealiumEnvironment = sanitize_text_field( get_option( 'tealiumEnvironment' ) );101 $tealiumAccount = esc_attr( get_option( 'tealiumAccount' ) ); 102 $tealiumProfile = esc_attr( get_option( 'tealiumProfile' ) ); 103 $tealiumEnvironment = esc_attr( get_option( 'tealiumEnvironment' ) ); 104 104 105 105 // Add an admin message when looking at the plugins page if the Tealium tag is not found … … 150 150 */ 151 151 function tealiumRemoveExclusions( $utagdata ) { 152 $exclusions = sanitize_text_field( get_option( 'tealiumExclusions' ) );152 $exclusions = esc_attr( get_option( 'tealiumExclusions' ) ); 153 153 if ( !empty( $exclusions ) ) { 154 154 … … 429 429 430 430 // Get custom namespace value if set 431 $tealiumNamespace = sanitize_text_field( get_option( 'tealiumNamespace' , 'utag_data' ) );431 $tealiumNamespace = esc_attr( get_option( 'tealiumNamespace' , 'utag_data' ) ); 432 432 $tealiumNamespace = ( empty( $tealiumNamespace ) ? 'utag_data' : $tealiumNamespace ); 433 433 $jsondata = str_replace("\u0000*\u0000", "", $jsondata); … … 507 507 global $tealiumtag; 508 508 $tealiumAdvanced = get_option( 'tealiumTagCode' ); 509 $tealiumAccount = sanitize_text_field( get_option( 'tealiumAccount' ) );510 $tealiumProfile = sanitize_text_field( get_option( 'tealiumProfile' ) );511 $tealiumEnvironment = sanitize_text_field( get_option( 'tealiumEnvironment' ) );509 $tealiumAccount = esc_attr( get_option( 'tealiumAccount' ) ); 510 $tealiumProfile = esc_attr( get_option( 'tealiumProfile' ) ); 511 $tealiumEnvironment = esc_attr( get_option( 'tealiumEnvironment' ) ); 512 512 $tealiumTagType = get_option( 'tealiumTagType' ); 513 513 $tealiumCacheBuster = get_option( 'tealiumCacheBuster' ); … … 560 560 */ 561 561 function tealiumOutputUtagSync() { 562 $tealiumAccount = sanitize_text_field( get_option( 'tealiumAccount' ) );563 $tealiumProfile = sanitize_text_field( get_option( 'tealiumProfile' ) );564 $tealiumEnvironment = sanitize_text_field( get_option( 'tealiumEnvironment' ) );562 $tealiumAccount = esc_attr( get_option( 'tealiumAccount' ) ); 563 $tealiumProfile = esc_attr( get_option( 'tealiumProfile' ) ); 564 $tealiumEnvironment = esc_attr( get_option( 'tealiumEnvironment' ) ); 565 565 $tealiumCacheBuster = get_option( 'tealiumCacheBuster' ); 566 566 $cacheBuster = ""; … … 704 704 return false; 705 705 } 706 $request_uri = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );706 $request_uri = esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 707 707 $extension = substr( $request_uri, -4 ); 708 708 if ( stripos( $request_uri, 'sitemap' ) !== false && in_array( $extension, [ '.xml', '.xsl' ], true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.