Plugin Directory

Changeset 3156565


Ignore:
Timestamp:
09/24/2024 01:23:12 AM (18 months ago)
Author:
webangon
Message:

Update fix

Location:
xl-tab/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xl-tab/trunk/inc/helper.php

    r2269808 r3156565  
    1919        }
    2020        return $list;
     21    }
     22
     23    static function only_alpha_num($string){
     24        if (!preg_match("/[^[:alnum:]_\/-]/",$string)) {
     25            return $string;
     26        }
    2127    }
    2228
  • xl-tab/trunk/widgets/tab1/view.php

    r3156556 r3156565  
    11<?php
     2use XLTab\xltab_helper;
    23$align = ' '.$settings['inpalign'].' '.$settings['scroll'];
    34switch ($settings['tmpl']) {
     
    2829}
    2930
     31$tmpl = xltab_helper::only_alpha_num($settings['tmpl']);
     32
    3033?>
    3134
    32 <div class="xl-tab <?php echo esc_attr($settings['tmpl']).$align ;?>">
     35<div class="xl-tab <?php echo $tmpl.$align ;?>">
    3336    <ul class="tab-area">
    3437    <?php echo $outtitle;?>
Note: See TracChangeset for help on using the changeset viewer.