[Customisation Database Commits] r958 - /trunk/titania/style.php

Nathan Guse exreaction at phpbb.com
Wed Mar 31 20:36:31 BST 2010


Author: exreaction
Date: Wed Mar 31 20:36:30 2010
New Revision: 958

Log:
Allow more directory names for the style directory $60115

Modified:
    trunk/titania/style.php

Modified: trunk/titania/style.php
==============================================================================
*** trunk/titania/style.php (original)
--- trunk/titania/style.php Wed Mar 31 20:36:30 2010
***************
*** 23,29 ****
  	die('No Style');
  }
  
! $style = preg_replace('#[^a-z]#', '', $_GET['style']);
  
  if (file_exists(TITANIA_ROOT . 'styles/' . $style . '/theme/stylesheet.css'))
  {
--- 23,29 ----
  	die('No Style');
  }
  
! $style = preg_replace('#[^A-Za-z0-9_]#', '', $_GET['style']);
  
  if (file_exists(TITANIA_ROOT . 'styles/' . $style . '/theme/stylesheet.css'))
  {




More information about the customisationdb-commits mailing list