Make WordPress Core

Changeset 10484


Ignore:
Timestamp:
02/02/2009 07:17:27 PM (16 years ago)
Author:
ryan
Message:

Fix previewing of themes in subdirs. Props zedlander. fixes #8548 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/theme.php

    r10150 r10484  
    850850        return;
    851851
    852     $_GET['template'] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET['template']);
     852    $_GET['template'] = preg_replace('|[^a-z0-9_.-/]|i', '', $_GET['template']);
    853853
    854854    if ( validate_file($_GET['template']) )
     
    858858
    859859    if ( isset($_GET['stylesheet']) ) {
    860         $_GET['stylesheet'] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET['stylesheet']);
     860        $_GET['stylesheet'] = preg_replace('|[^a-z0-9_.-/]|i', '', $_GET['stylesheet']);
    861861        if ( validate_file($_GET['stylesheet']) )
    862862            return;
Note: See TracChangeset for help on using the changeset viewer.