From bda24faa27d288a40608eeac167f11057f80d0db Mon Sep 17 00:00:00 2001 From: Nick Tucker Date: Sun, 28 Dec 2008 22:15:45 +0000 Subject: [PATCH] Allow plugin_file.php to fetch from subdirectories of the plugins "files" directory. --- plugin_file.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugin_file.php b/plugin_file.php index 6ddd05b..cc38790 100644 --- a/plugin_file.php +++ b/plugin_file.php @@ -33,7 +33,7 @@ $t_plugin_path = config_get( 'plugin_path' ); $f_file = gpc_get_string( 'file' ); $t_matches = array(); -if ( !preg_match( '/^([a-zA-Z0-9_-]*)\/([a-zA-Z0-9._-]*)/', $f_file, $t_matches ) ) { +if ( !preg_match( '/^([a-zA-Z0-9_-]*)\/([\/a-zA-Z0-9._-]*)/', $f_file, $t_matches ) ) { trigger_error( ERROR_GENERIC, ERROR ); } -- 1.5.6.4