Make WordPress Core


Ignore:
Timestamp:
02/26/2005 06:38:18 AM (20 years ago)
Author:
ryan
Message:

Strip slashes from theme name. Encode special chars in theme name. http://mosquito.wordpress.org/view.php?id=978 and http://mosquito.wordpress.org/view.php?id=953

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r2319 r2385  
    2525if (empty($theme)) {
    2626    $theme = get_current_theme();
     27} else {
     28    $theme = stripslashes($theme);
    2729}
    2830
     
    9092        if ($theme_name == $theme) $selected = " selected='selected'";
    9193        else $selected = '';
    92         echo "\n\t<option value='$theme_name' $selected>$theme_name</option>";
     94        $theme_name = wp_specialchars($theme_name, true);
     95        echo "\n\t<option value=\"$theme_name\" $selected>$theme_name</option>";
    9396    }
    9497?>
Note: See TracChangeset for help on using the changeset viewer.