Plugin Directory

Changeset 2806076


Ignore:
Timestamp:
10/27/2022 06:43:50 PM (3 years ago)
Author:
clevelandwebdeveloper
Message:

Security update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spacer/tags/3.0.7/index.php

    r2806011 r2806076  
    12721272            $args["class"] = "";
    12731273        }
     1274        $usevalue = get_option($args["id"], $default);
     1275        $usevalue = esc_attr($usevalue);
    12741276        // Render the output
    1275         echo '<input type="text" '  . $placeholder_html . $max_length_html . ' id="'  . $args["id"] . '" class="' . $args["class"]. '" name="'  . $args["id"] . '" value="' . get_option($args["id"], $default) . '" />';
     1277        echo '<input type="text" '  . $placeholder_html . $max_length_html . ' id="'  . $args["id"] . '" class="' . $args["class"]. '" name="'  . $args["id"] . '" value="' . $usevalue . '" />';
    12761278        if(isset($args["desc"])) {
    12771279            echo "<p class='description'>".$args["desc"]."</p>";
     
    13081310            $usevalue = $getarray[$key];
    13091311        }
     1312        $usevalue = esc_attr($usevalue);
    13101313        // Render the output
    13111314        echo '<input type="text" '  . $placeholder_html . $max_length_html . ' class="' . $args["class"]. '" name="'  . $args["id"] . '['.$key.']"   value="' . $usevalue . '" />';
Note: See TracChangeset for help on using the changeset viewer.