Changeset 10677 for branches/2.7/wp-includes/theme.php
- Timestamp:
- 03/01/2009 07:59:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/theme.php
r10484 r10677 850 850 return; 851 851 852 $_GET['template'] = preg_replace('|[^a-z0-9_. -/]|i', '', $_GET['template']);852 $_GET['template'] = preg_replace('|[^a-z0-9_.\-/]|i', '', $_GET['template']); 853 853 854 854 if ( validate_file($_GET['template']) ) … … 858 858 859 859 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']); 861 861 if ( validate_file($_GET['stylesheet']) ) 862 862 return;
Note: See TracChangeset
for help on using the changeset viewer.