Plugin Directory

Changeset 2710733


Ignore:
Timestamp:
04/17/2022 12:40:25 PM (4 years ago)
Author:
zonnix
Message:

edits

Location:
twl-easy-call/trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • twl-easy-call/trunk/includes/ajax.php

    r2705185 r2710733  
    4242                    } catch (Exception $e) {
    4343                        // Failed calls will throw
    44                         echo $e->getMessage();
     44                        echo esc_attr($e->getMessage());
    4545                    }
    4646               
  • twl-easy-call/trunk/includes/shortcodes.php

    r2705185 r2710733  
    1919
    2020                //agent phone number
    21                 $agent_phone = esc_attr($attr['number']);
     21                $agent_phone = $attr['number'];
    2222
    2323                $button_label = 'Click To Call';
    2424                if (isset($attr['label']))
    25                     $button_label = esc_attr($attr['label']);
     25                    $button_label = $attr['label'];
    2626                ?>
    2727                <input type="text" class="twilio_call_number"/>
    28                 <button data-agent="<?php echo $agent_phone; ?>" type="button" class="twilio_call_button"><?php echo $button_label; ?></button>               
     28                <button data-agent="<?php echo esc_attr($agent_phone); ?>" type="button" class="twilio_call_button"><?php echo esc_attr($button_label); ?></button>                             
    2929                <?php
    3030            endif;
Note: See TracChangeset for help on using the changeset viewer.