Changeset 10483
- Timestamp:
- 02/02/2009 07:17:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r10150 r10483 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.