projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix dev operation @ localhost, RT#13852
[freeside.git]
/
rt
/
lib
/
RT
/
Interface
/
Web.pm
diff --git
a/rt/lib/RT/Interface/Web.pm
b/rt/lib/RT/Interface/Web.pm
index
814a829
..
262aeac
100644
(file)
--- a/
rt/lib/RT/Interface/Web.pm
+++ b/
rt/lib/RT/Interface/Web.pm
@@
-1251,8
+1251,9
@@
to handle common problems such as localhost vs 127.0.0.1
=cut
sub _NormalizeHost {
-
- my $uri= URI->new(shift);
+ my $s = shift;
+ $s = "http://$s" unless $s =~ /^http/i;
+ my $uri= URI->new($s);
$uri->host('127.0.0.1') if $uri->host eq 'localhost';
return $uri;