Changeset 8485 for trunk/wp-includes/theme.php
- Timestamp:
- 07/29/2008 05:03:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r8301 r8485 487 487 return; 488 488 489 $_GET[template] = preg_replace('|[^a-z0-9_-]|i', '', $_GET[template]); 489 $_GET[template] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET[template]); 490 491 if ( validate_file($_GET[template]) ) 492 return; 490 493 491 494 add_filter('template', create_function('', "return '$_GET[template]';") ); 492 495 493 496 if ( isset($_GET['stylesheet']) ) { 494 $_GET[stylesheet] = preg_replace('|[^a-z0-9_-]|i', '', $_GET[stylesheet]); 497 $_GET[stylesheet] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET[stylesheet]); 498 if ( validate_file($_GET[stylesheet]) ) 499 return; 495 500 add_filter('stylesheet', create_function('', "return '$_GET[stylesheet]';") ); 496 501 }
Note: See TracChangeset
for help on using the changeset viewer.