Skip to content

Commit 01a825f

Browse files
committed
Fixed issue with URL fix incase of symlinked paths
1 parent aee1aea commit 01a825f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

EmailReporting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ function ERP_check_mantisbt_url( )
649649
{
650650
$t_path = config_get_global( 'path' );
651651
$t_mail_mantisbt_url_fix = plugin_config_get( 'mail_mantisbt_url_fix', '' );
652-
$t_absolute_path = config_get_global( 'absolute_path' );
653-
$t_dir_script_filename = str_replace( array( '\\', '/'), DIRECTORY_SEPARATOR, dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR );
652+
$t_absolute_path = realpath( config_get_global( 'absolute_path' ) );
653+
$t_dir_script_filename = realpath( str_replace( array( '\\', '/'), DIRECTORY_SEPARATOR, dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR ) );
654654

655655
if ( strncasecmp( $t_path, 'http', 4 ) === 0 &&
656656
$t_path !== $t_mail_mantisbt_url_fix &&

doc/CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Okt 2017 - EmailReporting-0.10.1
1212
- Use mbstring functions where applicable
1313
- Correct help link for MantisBT doku wiki EmailReporting page
1414
- Removed realname validation (MantisBT 2.12 retired needed functions)
15+
- Fixed issue with URL fix incase of symlinked paths
1516

1617
Sep 2017 - EmailReporting-0.10.0
1718
- Officially compatible with MantisBT 2.x.x

0 commit comments

Comments
 (0)