Plugin Directory

Changeset 3359404


Ignore:
Timestamp:
09/10/2025 07:02:20 PM (7 months ago)
Author:
GentleSource
Message:

Escape user input

Location:
appointmind/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • appointmind/trunk/appointmind.php

    r3170323 r3359404  
    165165        if (!empty($attributes['id'])) {
    166166            if (empty($appointmindUrlParameters)) {
    167                 $appointmindUrlParameters = '?cap=' . $attributes['id'];
     167                $appointmindUrlParameters = '?cap=' . esc_attr($attributes['id']);
    168168            } else {
    169                 $appointmindUrlParameters .= '&cap=' . $attributes['id'];
     169                $appointmindUrlParameters .= '&cap=' . esc_attr($attributes['id']);
    170170            }
    171171        }
    172172        if (!empty($attributes['reason'])) {
    173173            if (empty($appointmindUrlParameters)) {
    174                 $appointmindUrlParameters = '?reason=' . $attributes['reason'];
     174                $appointmindUrlParameters = '?reason=' . esc_attr($attributes['reason']);
    175175            } else {
    176                 $appointmindUrlParameters .= '&reason=' . $attributes['reason'];
     176                $appointmindUrlParameters .= '&reason=' . esc_attr($attributes['reason']);
    177177            }
    178178        }
    179179        if (!empty($attributes['language'])) {
    180180            if (empty($appointmindUrlParameters)) {
    181                 $appointmindUrlParameters = '?select_lang=' . $attributes['language'] . '_utf8';
     181                $appointmindUrlParameters = '?select_lang=' . esc_attr($attributes['language']) . '_utf8';
    182182            } else {
    183                 $appointmindUrlParameters .= '&select_lang=' . $attributes['language'] . '_utf8';
     183                $appointmindUrlParameters .= '&select_lang=' . esc_attr($attributes['language']) . '_utf8';
    184184            }
    185185        }
     
    228228        }
    229229
    230         $formType = trim($attributes['form']);
     230        $formType = esc_attr(trim($attributes['form']));
    231231
    232232        $calendarContent = '';
  • appointmind/trunk/readme.txt

    r3268410 r3359404  
    2020
    2121== Changelog ==
     22
     23= 4.2.0 =
     24
     25Escape user input
    2226
    2327= 4.1.0 =
Note: See TracChangeset for help on using the changeset viewer.