Skip to content

Commit

Permalink
Don't assume that users actually entered a URL to proxy in an HTTP Pr…
Browse files Browse the repository at this point in the history
…oxy asset. This would be reasonable.
  • Loading branch information
perlDreamer committed Jun 7, 2012
1 parent 2cb7c5b commit 6e88016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/WebGUI/Asset/Wobject/HttpProxy.pm
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6e88016

Please sign in to comment.