From: ivan Date: Sat, 4 Aug 2007 02:06:56 +0000 (+0000) Subject: fix URL handling on RT redirects X-Git-Tag: TRIXBOX_2_6~420 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=5c90313c6e998f7bfe63147345fade00cbec1230 fix URL handling on RT redirects --- diff --git a/rt/etc/RT_SiteConfig.pm b/rt/etc/RT_SiteConfig.pm index ef110db0e..a5195f219 100644 --- a/rt/etc/RT_SiteConfig.pm +++ b/rt/etc/RT_SiteConfig.pm @@ -25,9 +25,6 @@ $RT::Organization = '%%%RT_DOMAIN%%%'; $RT::Timezone = '%%%RT_TIMEZONE%%%'; -$RT::WebBaseURL = ''; -$RT::WebPath = '/freeside/rt'; - $RT::WebExternalAuth = 1; $RT::WebFallbackToInternal = 1; #no $RT::WebExternalAuto = 1; @@ -35,6 +32,10 @@ $RT::WebExternalAuto = 1; $RT::URI::freeside::IntegrationType = 'Internal'; $RT::URI::freeside::URL = '%%%FREESIDE_URL%%%'; +$RT::URI::freeside::URL =~ m(^(https?://[^/]+)(/.*)$)i; +$RT::WebBaseURL = $1; +$RT::WebPath = "$2/rt"; + Set($DatabaseHost , ''); # These settings are user-editable.