Skip to content

Commit 23e460f

Browse files
authored
[5.3] Fix strict routing for frontend forms (#45619)
1 parent 5ce363b commit 23e460f

File tree

19 files changed

+21
-21
lines changed

19 files changed

+21
-21
lines changed

components/com_config/tmpl/config/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</h1>
3535
</div>
3636
<?php endif; ?>
37-
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" id="application-form" method="post" name="adminForm" class="form-validate">
37+
<form action="<?php echo Route::_('index.php'); ?>" method="post" name="adminForm" id="application-form" class="form-validate">
3838

3939
<div class="mb-2 d-flex">
4040
<button type="button" class="btn btn-sm btn-outline-info button-inlinehelp ms-auto">

components/com_config/tmpl/modules/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
}
4343
?>
4444

45-
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="modules-form" class="form-validate">
45+
<form action="<?php echo Route::_('index.php'); ?>" method="post" name="adminForm" id="modules-form" class="form-validate">
4646
<div class="row">
4747
<div class="col-md-12">
4848
<legend><?php echo Text::_('COM_CONFIG_MODULES_SETTINGS_TITLE'); ?></legend>

components/com_config/tmpl/templates/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</h1>
3636
</div>
3737
<?php endif; ?>
38-
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">
38+
<form action="<?php echo Route::_('index.php'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">
3939

4040
<div id="page-site" class="tab-pane active">
4141
<div class="row">

components/com_contact/tmpl/form/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</div>
3636
<?php endif; ?>
3737

38-
<form action="<?php echo Route::_('index.php?option=com_contact&id=' . (int) $this->item->id); ?>" method="post"
38+
<form action="<?php echo Route::_('index.php'); ?>" method="post"
3939
name="adminForm" id="adminForm" class="form-validate form-vertical">
4040
<fieldset>
4141
<?php echo HTMLHelper::_('uitab.startTabSet', $this->tab_name, ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?>

components/com_content/tmpl/form/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</div>
4545
<?php endif; ?>
4646

47-
<form action="<?php echo Route::_('index.php?option=com_content&a_id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
47+
<form action="<?php echo Route::_('index.php'); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
4848
<fieldset>
4949
<?php echo HTMLHelper::_('uitab.startTabSet', $this->tab_name, ['active' => 'editor', 'recall' => true, 'breakpoint' => 768]); ?>
5050

components/com_privacy/tmpl/confirm/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</h1>
3131
</div>
3232
<?php endif; ?>
33-
<form action="<?php echo Route::_('index.php?option=com_privacy&task=request.confirm'); ?>" method="post" class="form-validate form-horizontal well">
33+
<form action="<?php echo Route::_('index.php?task=request.confirm'); ?>" method="post" class="form-validate form-horizontal well">
3434
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
3535
<fieldset>
3636
<?php if (!empty($fieldset->label)) : ?>

components/com_privacy/tmpl/remind/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</h1>
3131
</div>
3232
<?php endif; ?>
33-
<form action="<?php echo Route::_('index.php?option=com_privacy&task=request.remind'); ?>" method="post" class="form-validate form-horizontal well">
33+
<form action="<?php echo Route::_('index.php?task=request.remind'); ?>" method="post" class="form-validate form-horizontal well">
3434
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
3535
<fieldset>
3636
<?php if (!empty($fieldset->label)) : ?>

components/com_privacy/tmpl/request/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</div>
3232
<?php endif; ?>
3333
<?php if ($this->sendMailEnabled) : ?>
34-
<form action="<?php echo Route::_('index.php?option=com_privacy&task=request.submit'); ?>" method="post" class="form-validate form-horizontal well">
34+
<form action="<?php echo Route::_('index.php?task=request.submit'); ?>" method="post" class="form-validate form-horizontal well">
3535
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
3636
<fieldset>
3737
<?php if (!empty($fieldset->label)) : ?>

components/com_users/tmpl/captive/default.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class="btn btn-sm btn-secondary"
5858
</div>
5959
<?php endif; ?>
6060

61-
<form action="<?php echo Route::_('index.php?option=com_users&task=captive.validate&record_id=' . ((int) $this->record->id)) ?>"
62-
id="users-mfa-captive-form"
61+
<form action="<?php echo Route::_('index.php?task=captive.validate&record_id=' . ((int) $this->record->id)) ?>"
6362
method="post"
63+
id="users-mfa-captive-form"
6464
class="form-horizontal"
6565
>
6666
<?php echo HTMLHelper::_('form.token') ?>

components/com_users/tmpl/login/default_login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</div>
5252
<?php endif; ?>
5353

54-
<form action="<?php echo Route::_('index.php?option=com_users&task=user.login'); ?>" method="post" class="com-users-login__form form-validate form-horizontal well" id="com-users-login__form">
54+
<form action="<?php echo Route::_('index.php?task=user.login'); ?>" method="post" id="com-users-login__form" class="com-users-login__form form-validate form-horizontal well">
5555

5656
<fieldset>
5757
<?php echo $this->form->renderFieldset('credentials', ['class' => 'com-users-login__input']); ?>

0 commit comments

Comments
 (0)