diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Quantum/CGI.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm index 5afa19b18..34db9a46f 100644 --- a/Bugzilla/Quantum/CGI.pm +++ b/Bugzilla/Quantum/CGI.pm @@ -27,6 +27,13 @@ sub script_name { return $self->controller->req->env->{SCRIPT_NAME}; } +sub referer { + my ($self) = @_; + my $c = $self->controller; + + return $c->req->headers->referrer; +} + sub http { my ($self, $header) = @_; return $self->controller->req->headers->header($header); |