Skip to content

Commit

Permalink
Fixed issue with URL fix incase of symlinked paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SL-Gundam committed May 28, 2018
1 parent aee1aea commit 01a825f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EmailReporting.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,8 @@ function ERP_check_mantisbt_url( )
{
$t_path = config_get_global( 'path' );
$t_mail_mantisbt_url_fix = plugin_config_get( 'mail_mantisbt_url_fix', '' );
$t_absolute_path = config_get_global( 'absolute_path' );
$t_dir_script_filename = str_replace( array( '\\', '/'), DIRECTORY_SEPARATOR, dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR );
$t_absolute_path = realpath( config_get_global( 'absolute_path' ) );
$t_dir_script_filename = realpath( str_replace( array( '\\', '/'), DIRECTORY_SEPARATOR, dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR ) );

if ( strncasecmp( $t_path, 'http', 4 ) === 0 &&
$t_path !== $t_mail_mantisbt_url_fix &&
Expand Down
1 change: 1 addition & 0 deletions doc/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Okt 2017 - EmailReporting-0.10.1
- Use mbstring functions where applicable
- Correct help link for MantisBT doku wiki EmailReporting page
- Removed realname validation (MantisBT 2.12 retired needed functions)
- Fixed issue with URL fix incase of symlinked paths

Sep 2017 - EmailReporting-0.10.0
- Officially compatible with MantisBT 2.x.x
Expand Down

0 comments on commit 01a825f

Please # to comment.