File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 48
48
49
49
if (isset ($ _POST ["add " ])) {
50
50
$ newID = $ mirror ->add ($ _POST );
51
- Html::back ();
51
+ if ($ _SESSION ['glpibackcreated ' ]) {
52
+ Html::redirect ($ mirror ->getLinkURL ());
53
+ } else {
54
+ Html::back ();
55
+ }
52
56
} elseif (isset ($ _POST ["update " ])) {
53
57
$ mirror ->update ($ _POST );
54
58
Html::back ();
Original file line number Diff line number Diff line change 55
55
$ _POST ['ip_end ' ] = (int )$ _POST ['ip_end0 ' ] . ". " . (int )$ _POST ['ip_end1 ' ] . ". " ;
56
56
$ _POST ['ip_end ' ] .= (int )$ _POST ['ip_end2 ' ] . ". " . (int )$ _POST ['ip_end3 ' ];
57
57
$ iprange ->add ($ _POST );
58
- Html::back ();
58
+ if ($ _SESSION ['glpibackcreated ' ]) {
59
+ Html::redirect ($ iprange ->getLinkURL ());
60
+ } else {
61
+ Html::back ();
62
+ }
59
63
} else {
60
64
Html::back ();
61
65
}
Original file line number Diff line number Diff line change 52
52
$ _POST ['rank ' ] = $ a_data ['rank ' ] + 1 ;
53
53
}
54
54
$ pfIPRange_ConfigSecurity ->add ($ _POST );
55
- Html::back ();
55
+
56
+ if ($ _SESSION ['glpibackcreated ' ]) {
57
+ Html::redirect ($ pfIPRange_ConfigSecurity ->getLinkURL ());
58
+ } else {
59
+ Html::back ();
60
+ }
56
61
}
You can’t perform that action at this time.
0 commit comments