Revision 63b61189
Von Moritz Bunkus vor mehr als 14 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
555 | 555 |
return $uri; |
556 | 556 |
} |
557 | 557 |
|
558 |
sub _add_to_request_uri { |
|
559 |
my $self = shift; |
|
560 |
|
|
561 |
my $relative_new_path = shift; |
|
562 |
my $request_uri = shift || $self->_get_request_uri; |
|
563 |
my $relative_new_uri = URI->new($relative_new_path); |
|
564 |
my @request_segments = $request_uri->path_segments; |
|
565 |
|
|
566 |
my $new_uri = $request_uri->clone; |
|
567 |
$new_uri->path_segments(@request_segments[0..scalar(@request_segments) - 2], $relative_new_uri->path_segments); |
|
568 |
|
|
569 |
return $new_uri; |
|
570 |
} |
|
571 |
|
|
558 | 572 |
sub create_http_response { |
559 | 573 |
$main::lxdebug->enter_sub(); |
560 | 574 |
|
Auch abrufbar als: Unified diff
Hilfsfunktion zur Berechnung von URI-Objekten anhand eines relativen Pfades