Skip to content
Permalink
Browse files

Don't assume that users actually entered a URL to proxy in an HTTP Pr…

…oxy asset. This would be reasonable.
  • Loading branch information...
perlDreamer committed Jun 7, 2012
1 parent 2cb7c5b commit 6e8801600d0ab8fed2f97a106131a65d1ad50b8c
Showing with 5 additions and 2 deletions.
  1. +1 −0 docs/changelog/7.x.x.txt
  2. +4 −2 lib/WebGUI/Asset/Wobject/HttpProxy.pm
@@ -18,6 +18,7 @@
- fixed #12364: Site export loses session info
- fixed #12345: tickets in trash still show up
- fixed #12305: dbSlave breaks WebGUI when not able to connect
- fixed: Http Proxy assets with no URL to proxy cannot be deleted.

7.10.24
- fixed #12318: asset error causes asset manager to fail
@@ -299,8 +299,10 @@ See WebGUI::Asset::purgeCache() for details.

sub purgeCache {
my $self = shift;
WebGUI::Cache->new($self->session,$self->get("proxiedUrl"),"URL")->delete;
WebGUI::Cache->new($self->session,$self->get("proxiedUrl"),"HEADER")->delete;
if (my $proxiedUrl = $self->get("proxiedUrl")) {
WebGUI::Cache->new($self->session,$proxiedUrl,"URL")->delete;
WebGUI::Cache->new($self->session,$proxiedUrl,"HEADER")->delete;
}
$self->SUPER::purgeCache;
}

0 comments on commit 6e88016

Please sign in to comment.
You can’t perform that action at this time.