Skip to content
Permalink
Browse files

webui: encode return url in object state change form

  • Loading branch information...
aither64 committed Mar 9, 2019
1 parent 36cad92 commit 51c68b40a4a52f954b9734ddf47bfe1b05e451bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 webui/forms/lifetimes.forms.php
@@ -3,7 +3,7 @@
function lifetimes_set_state_form($resource, $id, $current_obj = null) {
global $xtpl, $api;
$return = $_GET['return'] ? $_GET['return'] : urlencode($_SERVER['REQUEST_URI']);
$return = urlencode($_GET['return'] ? $_GET['return'] : $_SERVER['REQUEST_URI']);
$xtpl->table_title(_('Object state'));
$xtpl->form_create('?page=lifetimes&action=set_state&resource='.$resource.'&id='.$id.'&return='.$return, 'post');

0 comments on commit 51c68b4

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