[freeside-commits] freeside/rt/etc RT_SiteConfig.pm,1.9,1.10

Ivan,,, ivan at wavetail.420.am
Fri Aug 3 19:06:58 PDT 2007


Update of /home/cvs/cvsroot/freeside/rt/etc
In directory wavetail:/tmp/cvs-serv18068/etc

Modified Files:
	RT_SiteConfig.pm 
Log Message:
fix URL handling on RT redirects

Index: RT_SiteConfig.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/etc/RT_SiteConfig.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- RT_SiteConfig.pm	3 Aug 2007 21:49:01 -0000	1.9
+++ RT_SiteConfig.pm	4 Aug 2007 02:06:56 -0000	1.10
@@ -25,9 +25,6 @@
 
 $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::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.



More information about the freeside-commits mailing list