Make WordPress Core

Changeset 6016


Ignore:
Timestamp:
09/03/2007 04:11:10 PM (17 years ago)
Author:
westi
Message:

urlencode the theme name and stylesheet name in the activate links so as to support directories with + in the name. Fixes #3279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r5419 r6016  
    7070    $screenshot = $themes[$theme_name]['Screenshot'];
    7171    $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
    72     $activate_link = wp_nonce_url("themes.php?action=activate&template=$template&stylesheet=$stylesheet", 'switch-theme_' . $template);
     72    $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template);
    7373?>
    7474<div class="available-theme">
Note: See TracChangeset for help on using the changeset viewer.