Changeset 10824
- Timestamp:
- 03/20/2009 12:30:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r10676 r10824 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.