Plugin Directory

Changeset 3211275


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

Adjusted regEx to allow & in shortcode.

File:
1 edited

Legend:

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

    r3211139 r3211275  
    44Plugin URI: https://www.pcrecruiter.net
    55Description: Embeds PCRecruiter forms and iframe content via shortcodes, and facilitiates RSS/XML Job Feeds.
    6 Version: 1.4.21
     6Version: 1.4.22
    77Author: Main Sequence Technology, Inc.
    88Author URI: https://www.pcrecruiter.net
     
    2121add_action( 'wp_enqueue_scripts', 'pcr_assets' );
    2222function sanitize_loadurl($urlparam)
    23         {
    24             // Allow only letters, numbers, periods, equals, colons, question marks, forward slashes, percent signs, and spaces
    25             return preg_replace('/[^a-zA-Z0-9\.\=\:\?\/%\s]/', '', $urlparam);
    26            
    27         }
     23    {
     24        // Allow only letters, numbers, periods, equals, colons, question marks, forward slashes, percent signs, spaces, and ampersands
     25        return preg_replace('/[^a-zA-Z0-9\.\=\:\?\/%\s&]/', '', $urlparam);
     26    }
     27
    2828function pcr_frame($atts)
    2929{
Note: See TracChangeset for help on using the changeset viewer.