Plugin Directory

Changeset 3321077


Ignore:
Timestamp:
07/02/2025 09:34:00 AM (9 months ago)
Author:
tealium
Message:

Commit 2.1.20

Location:
tealium/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tealium/trunk/readme.txt

    r3320962 r3321077  
    55Requires at least: 3.0.1
    66Tested up to: 6.8.1
    7 Stable tag: 2.1.19
     7Stable tag: 2.1.20
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    112112== Changelog ==
    113113
     114= 2.1.20 =
     115* Alter sanitization method following feedback from Patchstack
     116
    114117= 2.1.19 =
    115118* PHP 8 bugfix
     
    220223== Upgrade Notice ==
    221224
     225= 2.1.20 =
     226Alter sanitization method following feedback from Patchstack
     227
    222228= 2.1.19 =
    223229PHP8 Bugfix
  • tealium/trunk/tealium.php

    r3320962 r3321077  
    44Plugin URI: http://tealium.com
    55Description: Adds the Tealium tag and creates a data layer for your WordPress site.
    6 Version: 2.1.19
     6Version: 2.1.20
    77Author: Ian Hampton
    88Author URI: http://tealium.com
     
    9999    $currentScreen = get_current_screen();
    100100    $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' ) );
    104104
    105105    // Add an admin message when looking at the plugins page if the Tealium tag is not found
     
    150150 */
    151151function tealiumRemoveExclusions( $utagdata ) {
    152     $exclusions = sanitize_text_field( get_option( 'tealiumExclusions' ) );
     152    $exclusions = esc_attr( get_option( 'tealiumExclusions' ) );
    153153    if ( !empty( $exclusions ) ) {
    154154
     
    429429       
    430430        // 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' ) );
    432432        $tealiumNamespace = ( empty( $tealiumNamespace ) ? 'utag_data' : $tealiumNamespace );
    433433        $jsondata = str_replace("\u0000*\u0000", "", $jsondata);
     
    507507    global $tealiumtag;
    508508    $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' ) );
    512512    $tealiumTagType = get_option( 'tealiumTagType' );
    513513    $tealiumCacheBuster = get_option( 'tealiumCacheBuster' );
     
    560560 */
    561561function 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' ) );
    565565    $tealiumCacheBuster = get_option( 'tealiumCacheBuster' );
    566566    $cacheBuster = "";
     
    704704        return false;
    705705    }
    706     $request_uri = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) );
     706    $request_uri = esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) );
    707707    $extension   = substr( $request_uri, -4 );
    708708    if ( stripos( $request_uri, 'sitemap' ) !== false && in_array( $extension, [ '.xml', '.xsl' ], true ) ) {
Note: See TracChangeset for help on using the changeset viewer.