[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-commit
Subject: [Rt-commit] r5310 - rt/branches/3.4-RELEASE/lib/RT
From: ruz () bestpractical ! com
Date: 2006-05-27 0:39:50
Message-ID: 20060527003950.12D5F4D8004 () diesel ! bestpractical ! com
[Download RAW message or body]
Author: ruz
Date: Fri May 26 20:39:49 2006
New Revision: 5310
Modified:
rt/branches/3.4-RELEASE/lib/RT/URI.pm
Log:
* when we could parse URI, for example object doesn't exist
fallback to RT::URI::base resolver, so $uri->IsLocal and
other methods wouldn't die but return undef
Modified: rt/branches/3.4-RELEASE/lib/RT/URI.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/URI.pm (original)
+++ rt/branches/3.4-RELEASE/lib/RT/URI.pm Fri May 26 20:39:49 2006
@@ -143,7 +143,7 @@
unless ($self->Resolver->ParseURI($uri)) {
$RT::Logger->warning("Resolver ".ref($self->Resolver)." could not parse $uri");
- $self->{resolver} = undef; # clear resolver
+ $self->{resolver} = RT::URI::base->new( $self->CurrentUser ); # clear resolver
return (undef);
}
_______________________________________________
Rt-commit mailing list
Rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic