Plugin Directory

Changeset 3211282


Ignore:
Timestamp:
12/20/2024 10:00:10 PM (13 months ago)
Author:
arothman
Message:

Revised sanitize functions to allow &filter= shortcodes to decode properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcrecruiter-extensions/trunk/PCRecruiter-Extensions.php

    r3211275 r3211282  
    3838    $loadurl = $a['link'];
    3939    $loadurl = sanitize_loadurl($loadurl);
     40    $loadurl = htmlspecialchars_decode($loadurl, ENT_QUOTES); // Decode HTML entities, including &
     41
    4042    $initialheight = intval($a['initialheight']);
    4143    $background = preg_match('/^#[a-fA-F0-9]{3,6}$|^transparent$/', $a['background']) ? $a['background'] : 'transparent';
     
    7678    $iframe = $doc->createElement('iframe');
    7779    $iframe->setAttribute('frameborder', '0');
    78     $iframe->setAttribute('host', $loadurl);
     80    $iframe->setAttribute('host', esc_url($loadurl));
    7981    $iframe->setAttribute('id', 'pcrframe');
    8082    $iframe->setAttribute('name', 'pcrframe');
Note: See TracChangeset for help on using the changeset viewer.