Changes from trunk/wp-includes/theme.php at r10150 to branches/2.7/wp-includes/theme.php at r10484
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/theme.php
r10150 r10484 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.