Skip to content

Commit c8785e2

Browse files
committed
Fix issue with directory separators for MantisBT URL fix
1 parent 80b0372 commit c8785e2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

EmailReporting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ function ERP_check_mantisbt_url( )
642642
$t_path = config_get_global( 'path' );
643643
$t_mail_mantisbt_url_fix = plugin_config_get( 'mail_mantisbt_url_fix', '' );
644644
$t_absolute_path = config_get_global( 'absolute_path' );
645-
$t_dir_script_filename = dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR;
645+
$t_dir_script_filename = str_replace( array( '\\', '/'), DIRECTORY_SEPARATOR, dirname( $_SERVER['SCRIPT_FILENAME'] ) . DIRECTORY_SEPARATOR );
646646

647647
if ( strncasecmp( $t_path, 'http', 4 ) === 0 &&
648648
$t_path !== $t_mail_mantisbt_url_fix &&

doc/CHANGELOG.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Changelog:
2-
Jan 2017 - EmailReporting-0.10.0-DEV
2+
Sep 2017 - EmailReporting-0.10.0-DEV
33
- Officially compatible with MantisBT 2.x.x
44
- Drop support for MantisBT 1.2.x
55
- Updated PEAR packages: PEAR, Auth_SASL, Net_Socket
@@ -24,6 +24,7 @@ Jan 2017 - EmailReporting-0.10.0-DEV
2424
- Fix call to 'email_relationship_added' when incomming mail on fixed or closed bug
2525
- Remove any invisible unicode control format characters from email body
2626
- When bounce messages are processed, some attachments don't have any body
27+
- Fix issue with directory separators for MantisBT URL fix
2728

2829
Jan 2017 - EmailReporting-0.9.3.1
2930
- Fixed issue with db_get_table and MantisBT 1.2.x (legacy issue)

0 commit comments

Comments
 (0)