Make WordPress Core

Changeset 10824


Ignore:
Timestamp:
03/20/2009 12:30:32 AM (16 years ago)
Author:
azaozz
Message:

Less confusing regex, props filosofo, fixes #9244

File:
1 edited

Legend:

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

    r10676 r10824  
    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.