WordPress.org

Make WordPress Core

Changeset 10483


Ignore:
Timestamp:
02/02/09 19:17:14 (5 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r10150 r10483  
    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.