Skip to content

Commit

Permalink
Fix #15 (preg_match() failures on Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jan 19, 2023
1 parent df46869 commit 70147ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/calendar.php
Expand Up @@ -8,7 +8,7 @@
//=================================================

// Security check
if ((!function_exists('sv')) || preg_match('!calendar'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'calendar.php!i', sv('PHP_SELF')))die('Access denied');
if ((!function_exists('sv')) || preg_match('!calendar/include/calendar.php!i', sv('PHP_SELF')))die('Access denied');

global $plugin_cf,$calendar_cf,$plugin_tx,$sl,$sn,$su,$admxx,$lang,$datapath;
$o = '';
Expand Down
2 changes: 1 addition & 1 deletion includes/calendarconfig.php
Expand Up @@ -6,7 +6,7 @@
// //
//======================================================//
// Security check
if ((!function_exists('sv')) || preg_match('!calendar'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'calendarconfig.php!i', sv('PHP_SELF')))die('Access denied');
if ((!function_exists('sv')) || preg_match('!calendar/include/calendarconfig.php!i', sv('PHP_SELF')))die('Access denied');


global $pth,$plugin,$plugin_tx,$calendar_cf,$plugin_cf,$cf,$tx,$sl,$hjs;
Expand Down
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -3,7 +3,7 @@


// Security check
if ((!function_exists('sv')) || preg_match('!calendar'.DIRECTORY_SEPARATOR.'index.php!i', sv('PHP_SELF')))die('Access denied');
if ((!function_exists('sv')) || preg_match('!calendar/index.php!i', sv('PHP_SELF')))die('Access denied');

// checking if alternative filepath is wanted
if (!$plugin_cf['calendar']['filepath_data']){$datapath = $pth['folder']['plugins'].$plugin."/content/";}
Expand Down

0 comments on commit 70147ea

Please sign in to comment.