projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59bc1cb
)
fix URL handling on RT redirects
author
ivan
<ivan>
Sat, 4 Aug 2007 02:06:56 +0000
(
02:06
+0000)
committer
ivan
<ivan>
Sat, 4 Aug 2007 02:06:56 +0000
(
02:06
+0000)
rt/etc/RT_SiteConfig.pm
patch
|
blob
|
history
diff --git
a/rt/etc/RT_SiteConfig.pm
b/rt/etc/RT_SiteConfig.pm
index
ef110db
..
a5195f2
100644
(file)
--- 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::Timezone = '%%%RT_TIMEZONE%%%';
-$RT::WebBaseURL = '';
-$RT::WebPath = '/freeside/rt';
-
$RT::WebExternalAuth = 1;
$RT::WebFallbackToInternal = 1; #no
$RT::WebExternalAuto = 1;
$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::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.
Set($DatabaseHost , '');
# These settings are user-editable.