Files
webmin/ui-demo/apply.cgi
Ilia Ross 20a487ca5a
Some checks failed
Tests / prove (push) Has been cancelled
Package and upload artifacts / build (push) Has been cancelled
Close inactive / close-inactive (push) Has been cancelled
Add UI widgets and demo module
ⓘ Add composable widgets, shared styling and interactions, sortable-table options, and a read-only UI gallery.
2026-09-05 03:52:39 +02:00

20 lines
593 B
Perl

#!/usr/local/bin/perl
# Target of the "apply" link shown at the right of the page title. In a
# real module this is where the configuration would be applied or a
# service restarted, usually followed by a redirect back to the page the
# link was on, given in the redir parameter. This module is read-only, so
# it only redirects.
use strict;
use warnings;
require './ui-demo-lib.pl'; ## no critic
our (%in);
ReadParse();
# Only ever go back to this module's own index page
my $redir = $in{'redir'} || '';
$redir = 'index.cgi' if ($redir !~ /^index\.cgi(\?[\w=&.-]*)?$/);
redirect($redir);