##// END OF EJS Templates
hgweb: strip trailing '/' in apppath before appending '/static/' (issue5943)...
Cédric Krier -
r38768:258d90f6 @90 stable
parent child Browse files
Show More
@@ -136,7 +136,7 b' class requestcontext(object):'
136 logourl = self.config('web', 'logourl')
136 logourl = self.config('web', 'logourl')
137 logoimg = self.config('web', 'logoimg')
137 logoimg = self.config('web', 'logoimg')
138 staticurl = (self.config('web', 'staticurl')
138 staticurl = (self.config('web', 'staticurl')
139 or req.apppath + '/static/')
139 or req.apppath.rstrip('/') + '/static/')
140 if not staticurl.endswith('/'):
140 if not staticurl.endswith('/'):
141 staticurl += '/'
141 staticurl += '/'
142
142
@@ -514,7 +514,7 b' class hgwebdir(object):'
514 logourl = config('web', 'logourl')
514 logourl = config('web', 'logourl')
515 logoimg = config('web', 'logoimg')
515 logoimg = config('web', 'logoimg')
516 staticurl = (config('web', 'staticurl')
516 staticurl = (config('web', 'staticurl')
517 or req.apppath + '/static/')
517 or req.apppath.rstrip('/') + '/static/')
518 if not staticurl.endswith('/'):
518 if not staticurl.endswith('/'):
519 staticurl += '/'
519 staticurl += '/'
520
520
General Comments 0
You need to be logged in to leave comments. Login now