diff --git a/rhodecode/templates/admin/defaults/defaults_repositories.mako b/rhodecode/templates/admin/defaults/defaults_repositories.mako --- a/rhodecode/templates/admin/defaults/defaults_repositories.mako +++ b/rhodecode/templates/admin/defaults/defaults_repositories.mako @@ -3,7 +3,7 @@

${_('Default Settings For New Repositories')}

- ${h.secure_form(h.route_path('admin_defaults_repositories_update'), method='POST', request=request)} + ${h.secure_form(h.route_path('admin_defaults_repositories_update'), request=request)}
diff --git a/rhodecode/templates/admin/gists/edit.mako b/rhodecode/templates/admin/gists/edit.mako --- a/rhodecode/templates/admin/gists/edit.mako +++ b/rhodecode/templates/admin/gists/edit.mako @@ -26,7 +26,7 @@
- ${h.secure_form(h.route_path('gist_update', gist_id=c.gist.gist_access_id), id='eform', method='POST', request=request)} + ${h.secure_form(h.route_path('gist_update', gist_id=c.gist.gist_access_id), id='eform', request=request)}
diff --git a/rhodecode/templates/admin/gists/show.mako b/rhodecode/templates/admin/gists/show.mako --- a/rhodecode/templates/admin/gists/show.mako +++ b/rhodecode/templates/admin/gists/show.mako @@ -45,7 +45,7 @@
%if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
- ${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), method='POST', request=request)} + ${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), request=request)} ${h.submit('remove_gist', _('Delete'),class_="btn btn-mini btn-danger",onclick="return confirm('"+_('Confirm to delete this Gist')+"');")} ${h.end_form()}
diff --git a/rhodecode/templates/admin/my_account/my_account_auth_tokens.mako b/rhodecode/templates/admin/my_account/my_account_auth_tokens.mako --- a/rhodecode/templates/admin/my_account/my_account_auth_tokens.mako +++ b/rhodecode/templates/admin/my_account/my_account_auth_tokens.mako @@ -42,7 +42,7 @@ %endif - ${h.secure_form(h.route_path('my_account_auth_tokens_delete'), method='POST', request=request)} + ${h.secure_form(h.route_path('my_account_auth_tokens_delete'), request=request)} ${h.hidden('del_auth_token', auth_token.user_api_key_id)}
- ${h.secure_form(h.route_path('my_account_auth_tokens_add'), method='POST', request=request)} + ${h.secure_form(h.route_path('my_account_auth_tokens_add'), request=request)}
diff --git a/rhodecode/templates/admin/my_account/my_account_emails.mako b/rhodecode/templates/admin/my_account/my_account_emails.mako --- a/rhodecode/templates/admin/my_account/my_account_emails.mako +++ b/rhodecode/templates/admin/my_account/my_account_emails.mako @@ -25,7 +25,7 @@ - ${h.secure_form(h.route_path('my_account_emails_delete'), method='POST', request=request)} + ${h.secure_form(h.route_path('my_account_emails_delete'), request=request)} ${h.hidden('del_email_id',em.email_id)}
- ${h.secure_form(h.route_path('my_account_emails_add'), method='POST', request=request)} + ${h.secure_form(h.route_path('my_account_emails_add'), request=request)}
diff --git a/rhodecode/templates/admin/my_account/my_account_profile_edit.mako b/rhodecode/templates/admin/my_account/my_account_profile_edit.mako --- a/rhodecode/templates/admin/my_account/my_account_profile_edit.mako +++ b/rhodecode/templates/admin/my_account/my_account_profile_edit.mako @@ -6,7 +6,7 @@
- ${h.secure_form(h.route_path('my_account_update'), class_='form', method='POST', request=request)} + ${h.secure_form(h.route_path('my_account_update'), class_='form', request=request)} <% readonly = None %> <% disabled = "" %> diff --git a/rhodecode/templates/admin/my_account/my_account_ssh_keys.mako b/rhodecode/templates/admin/my_account/my_account_ssh_keys.mako --- a/rhodecode/templates/admin/my_account/my_account_ssh_keys.mako +++ b/rhodecode/templates/admin/my_account/my_account_ssh_keys.mako @@ -24,7 +24,7 @@ ${h.format_date(ssh_key.created_on)} - ${h.secure_form(h.route_path('my_account_ssh_keys_delete'), method='POST', request=request)} + ${h.secure_form(h.route_path('my_account_ssh_keys_delete'), request=request)} ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} ${h.end_form()}
diff --git a/rhodecode/templates/admin/repo_groups/repo_group_add.mako b/rhodecode/templates/admin/repo_groups/repo_group_add.mako --- a/rhodecode/templates/admin/repo_groups/repo_group_add.mako +++ b/rhodecode/templates/admin/repo_groups/repo_group_add.mako @@ -27,7 +27,7 @@ ${self.breadcrumbs()}
- ${h.secure_form(h.url('repo_groups'), method='post')} + ${h.secure_form(h.url('repo_groups'), request=request)}
diff --git a/rhodecode/templates/admin/repo_groups/repo_group_edit_advanced.mako b/rhodecode/templates/admin/repo_groups/repo_group_edit_advanced.mako --- a/rhodecode/templates/admin/repo_groups/repo_group_edit_advanced.mako +++ b/rhodecode/templates/admin/repo_groups/repo_group_edit_advanced.mako @@ -28,7 +28,7 @@

${_('Delete repository group')}

- ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete')} + ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete', request=request)} diff --git a/rhodecode/templates/admin/repo_groups/repo_group_edit_perms.mako b/rhodecode/templates/admin/repo_groups/repo_group_edit_perms.mako --- a/rhodecode/templates/admin/repo_groups/repo_group_edit_perms.mako +++ b/rhodecode/templates/admin/repo_groups/repo_group_edit_perms.mako @@ -5,7 +5,7 @@

${_('Repository Group Permissions')}

- ${h.secure_form(h.url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put')} + ${h.secure_form(h.url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put', request=request)}
diff --git a/rhodecode/templates/admin/repo_groups/repo_group_edit_settings.mako b/rhodecode/templates/admin/repo_groups/repo_group_edit_settings.mako --- a/rhodecode/templates/admin/repo_groups/repo_group_edit_settings.mako +++ b/rhodecode/templates/admin/repo_groups/repo_group_edit_settings.mako @@ -6,7 +6,7 @@

${_('Settings for Repository Group: %s') % c.repo_group.name}

- ${h.secure_form(h.url('update_repo_group',group_name=c.repo_group.group_name),method='put')} + ${h.secure_form(h.url('update_repo_group',group_name=c.repo_group.group_name),method='put', request=request)}
diff --git a/rhodecode/templates/admin/repos/repo_add_base.mako b/rhodecode/templates/admin/repos/repo_add_base.mako --- a/rhodecode/templates/admin/repos/repo_add_base.mako +++ b/rhodecode/templates/admin/repos/repo_add_base.mako @@ -1,6 +1,6 @@ ## -*- coding: utf-8 -*- -${h.secure_form(h.route_path('repo_create'), method='POST', request=request)} +${h.secure_form(h.route_path('repo_create'), request=request)}
diff --git a/rhodecode/templates/admin/repos/repo_edit_advanced.mako b/rhodecode/templates/admin/repos/repo_edit_advanced.mako --- a/rhodecode/templates/admin/repos/repo_edit_advanced.mako +++ b/rhodecode/templates/admin/repos/repo_edit_advanced.mako @@ -24,7 +24,7 @@

${_('Fork Reference')}

- ${h.secure_form(h.route_path('edit_repo_advanced_fork', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_advanced_fork', repo_name=c.rhodecode_db_repo.repo_name), request=request)} % if c.rhodecode_db_repo.fork:
${h.literal(_('This repository is a fork of %(repo_link)s') % {'repo_link': h.link_to_if(c.has_origin_repo_read_perm,c.rhodecode_db_repo.fork.repo_name, h.route_path('repo_summary', repo_name=c.rhodecode_db_repo.fork.repo_name))})} @@ -48,7 +48,7 @@

${_('Public Journal Visibility')}

- ${h.secure_form(h.route_path('edit_repo_advanced_journal', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_advanced_journal', repo_name=c.rhodecode_db_repo.repo_name), request=request)}
%if c.in_public_journal:
- ${h.secure_form(h.route_path('edit_repo_advanced_locking', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_advanced_locking', repo_name=c.rhodecode_db_repo.repo_name), request=request)} %if c.rhodecode_db_repo.locked[0]:
${'Locked by %s on %s. Lock reason: %s' % (h.person_by_id(c.rhodecode_db_repo.locked[0]), @@ -113,7 +113,7 @@

${_('Delete repository')}

- ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=c.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=c.repo_name), request=request)}
${_('None')}
diff --git a/rhodecode/templates/admin/repos/repo_edit_caches.mako b/rhodecode/templates/admin/repos/repo_edit_caches.mako --- a/rhodecode/templates/admin/repos/repo_edit_caches.mako +++ b/rhodecode/templates/admin/repos/repo_edit_caches.mako @@ -14,7 +14,7 @@

- ${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), request=request)}
${h.submit('reset_cache_%s' % c.rhodecode_db_repo.repo_name,_('Invalidate repository cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} diff --git a/rhodecode/templates/admin/repos/repo_edit_fields.mako b/rhodecode/templates/admin/repos/repo_edit_fields.mako --- a/rhodecode/templates/admin/repos/repo_edit_fields.mako +++ b/rhodecode/templates/admin/repos/repo_edit_fields.mako @@ -18,7 +18,7 @@
${field.field_key} ${field.field_type} - ${h.secure_form(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), request=request)} ${h.hidden('del_repo_field',field.repo_field_id)}
%endif - ${h.secure_form(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), request=request)}
diff --git a/rhodecode/templates/admin/repos/repo_edit_issuetracker.mako b/rhodecode/templates/admin/repos/repo_edit_issuetracker.mako --- a/rhodecode/templates/admin/repos/repo_edit_issuetracker.mako +++ b/rhodecode/templates/admin/repos/repo_edit_issuetracker.mako @@ -1,7 +1,7 @@ <%namespace name="its" file="/base/issue_tracker_settings.mako"/>
- ${h.secure_form(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", request=request)}
diff --git a/rhodecode/templates/admin/repos/repo_edit_permissions.mako b/rhodecode/templates/admin/repos/repo_edit_permissions.mako --- a/rhodecode/templates/admin/repos/repo_edit_permissions.mako +++ b/rhodecode/templates/admin/repos/repo_edit_permissions.mako @@ -5,7 +5,7 @@

${_('Repository Permissions')}

- ${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), request=request)} diff --git a/rhodecode/templates/admin/repos/repo_edit_remote.mako b/rhodecode/templates/admin/repos/repo_edit_remote.mako --- a/rhodecode/templates/admin/repos/repo_edit_remote.mako +++ b/rhodecode/templates/admin/repos/repo_edit_remote.mako @@ -19,7 +19,7 @@

- ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)}
${h.submit('remote_pull_%s' % c.rhodecode_db_repo.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} diff --git a/rhodecode/templates/admin/repos/repo_edit_settings.mako b/rhodecode/templates/admin/repos/repo_edit_settings.mako --- a/rhodecode/templates/admin/repos/repo_edit_settings.mako +++ b/rhodecode/templates/admin/repos/repo_edit_settings.mako @@ -6,7 +6,7 @@

${_('Settings for Repository: %s') % c.rhodecode_db_repo.repo_name}

- ${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), request=request)}
diff --git a/rhodecode/templates/admin/repos/repo_edit_statistics.mako b/rhodecode/templates/admin/repos/repo_edit_statistics.mako --- a/rhodecode/templates/admin/repos/repo_edit_statistics.mako +++ b/rhodecode/templates/admin/repos/repo_edit_statistics.mako @@ -3,7 +3,7 @@

${_('Repository statistics')}

- ${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), request=request)}
diff --git a/rhodecode/templates/admin/repos/repo_edit_strip.mako b/rhodecode/templates/admin/repos/repo_edit_strip.mako --- a/rhodecode/templates/admin/repos/repo_edit_strip.mako +++ b/rhodecode/templates/admin/repos/repo_edit_strip.mako @@ -9,7 +9,7 @@ ${_('In the first step commits will be verified for existance in the repository')}.
${_('In the second step, correct commits will be available for stripping')}.

- ${h.secure_form(h.route_path('strip_check', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('strip_check', repo_name=c.rhodecode_db_repo.repo_name), request=request)}
- ${h.secure_form(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), request=request)}
diff --git a/rhodecode/templates/admin/settings/settings_email.mako b/rhodecode/templates/admin/settings/settings_email.mako --- a/rhodecode/templates/admin/settings/settings_email.mako +++ b/rhodecode/templates/admin/settings/settings_email.mako @@ -34,7 +34,7 @@

${_('Test Email')}

- ${h.secure_form(h.url('admin_settings_email'), method='post')} + ${h.secure_form(h.url('admin_settings_email'), request=request)}
${h.text('test_email', size=60, placeholder=_('enter valid email'))} diff --git a/rhodecode/templates/admin/settings/settings_global.mako b/rhodecode/templates/admin/settings/settings_global.mako --- a/rhodecode/templates/admin/settings/settings_global.mako +++ b/rhodecode/templates/admin/settings/settings_global.mako @@ -1,4 +1,4 @@ -${h.secure_form(h.url('admin_settings_global'), method='post')} +${h.secure_form(h.url('admin_settings_global'), request=request)}
diff --git a/rhodecode/templates/admin/settings/settings_hooks.mako b/rhodecode/templates/admin/settings/settings_hooks.mako --- a/rhodecode/templates/admin/settings/settings_hooks.mako +++ b/rhodecode/templates/admin/settings/settings_hooks.mako @@ -28,7 +28,7 @@
% if c.visual.allow_custom_hooks_settings: - ${h.secure_form(h.url('admin_settings_hooks'), method='post')} + ${h.secure_form(h.url('admin_settings_hooks'), request=request)}
diff --git a/rhodecode/templates/admin/settings/settings_issuetracker.mako b/rhodecode/templates/admin/settings/settings_issuetracker.mako --- a/rhodecode/templates/admin/settings/settings_issuetracker.mako +++ b/rhodecode/templates/admin/settings/settings_issuetracker.mako @@ -5,7 +5,7 @@

${_('Issue Tracker / Wiki Patterns')}

- ${h.secure_form(h.url('admin_settings_issuetracker_save'), method='post')} + ${h.secure_form(h.url('admin_settings_issuetracker_save'), request=request)} ${its.issue_tracker_settings_table( patterns=c.issuetracker_entries.items(), form_url=h.url('admin_settings_issuetracker'), diff --git a/rhodecode/templates/admin/settings/settings_labs.mako b/rhodecode/templates/admin/settings/settings_labs.mako --- a/rhodecode/templates/admin/settings/settings_labs.mako +++ b/rhodecode/templates/admin/settings/settings_labs.mako @@ -3,7 +3,7 @@

${_('Labs Settings')}

- ${h.secure_form(h.url('admin_settings_labs'), method='post')} + ${h.secure_form(h.url('admin_settings_labs'), request=request)}
% if not c.lab_settings: diff --git a/rhodecode/templates/admin/settings/settings_mapping.mako b/rhodecode/templates/admin/settings/settings_mapping.mako --- a/rhodecode/templates/admin/settings/settings_mapping.mako +++ b/rhodecode/templates/admin/settings/settings_mapping.mako @@ -1,4 +1,4 @@ -${h.secure_form(h.url('admin_settings_mapping'), method='post')} +${h.secure_form(h.url('admin_settings_mapping'), request=request)}
diff --git a/rhodecode/templates/admin/settings/settings_sessions.mako b/rhodecode/templates/admin/settings/settings_sessions.mako --- a/rhodecode/templates/admin/settings/settings_sessions.mako +++ b/rhodecode/templates/admin/settings/settings_sessions.mako @@ -28,7 +28,7 @@

${_('Cleanup Old Sessions')}

- ${h.secure_form(h.route_path('admin_settings_sessions_cleanup'), method='POST', request=request)} + ${h.secure_form(h.route_path('admin_settings_sessions_cleanup'), request=request)}

${_('Cleanup user sessions that were not active during chosen time frame.')}
diff --git a/rhodecode/templates/admin/settings/settings_vcs.mako b/rhodecode/templates/admin/settings/settings_vcs.mako --- a/rhodecode/templates/admin/settings/settings_vcs.mako +++ b/rhodecode/templates/admin/settings/settings_vcs.mako @@ -1,6 +1,6 @@ <%namespace name="vcss" file="/base/vcs_settings.mako"/> -${h.secure_form(h.url('admin_settings_vcs'), method='post')} +${h.secure_form(h.url('admin_settings_vcs'), request=request)}

${vcss.vcs_settings_fields( suffix='', diff --git a/rhodecode/templates/admin/settings/settings_visual.mako b/rhodecode/templates/admin/settings/settings_visual.mako --- a/rhodecode/templates/admin/settings/settings_visual.mako +++ b/rhodecode/templates/admin/settings/settings_visual.mako @@ -1,4 +1,4 @@ -${h.secure_form(h.url('admin_settings_visual'), method='post')} +${h.secure_form(h.url('admin_settings_visual'), request=request)}
diff --git a/rhodecode/templates/admin/user_groups/user_group_add.mako b/rhodecode/templates/admin/user_groups/user_group_add.mako --- a/rhodecode/templates/admin/user_groups/user_group_add.mako +++ b/rhodecode/templates/admin/user_groups/user_group_add.mako @@ -26,7 +26,7 @@ ${self.breadcrumbs()}
- ${h.secure_form(h.route_path('user_groups_create'), method='POST', request=request)} + ${h.secure_form(h.route_path('user_groups_create'), request=request)}
diff --git a/rhodecode/templates/admin/user_groups/user_group_edit_advanced.mako b/rhodecode/templates/admin/user_groups/user_group_edit_advanced.mako --- a/rhodecode/templates/admin/user_groups/user_group_edit_advanced.mako +++ b/rhodecode/templates/admin/user_groups/user_group_edit_advanced.mako @@ -44,7 +44,7 @@ % endif
- ${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), request=request)}
- ${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), method='POST', request=request)} + ${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), request=request)} ${h.hidden('force', 1)}
- ${h.secure_form(h.route_path('edit_user_group_perms_update', user_group_id=c.user_group.users_group_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_group_perms_update', user_group_id=c.user_group.users_group_id), request=request)}
${_('None')}
diff --git a/rhodecode/templates/admin/user_groups/user_group_edit_settings.mako b/rhodecode/templates/admin/user_groups/user_group_edit_settings.mako --- a/rhodecode/templates/admin/user_groups/user_group_edit_settings.mako +++ b/rhodecode/templates/admin/user_groups/user_group_edit_settings.mako @@ -6,7 +6,7 @@

${_('User Group: %s') % c.user_group.users_group_name}

- ${h.secure_form(h.route_path('user_groups_update', user_group_id=c.user_group.users_group_id), id='edit_user_group', method='POST', request=request)} + ${h.secure_form(h.route_path('user_groups_update', user_group_id=c.user_group.users_group_id), id='edit_user_group', request=request)}
diff --git a/rhodecode/templates/admin/users/user_edit_auth_tokens.mako b/rhodecode/templates/admin/users/user_edit_auth_tokens.mako --- a/rhodecode/templates/admin/users/user_edit_auth_tokens.mako +++ b/rhodecode/templates/admin/users/user_edit_auth_tokens.mako @@ -38,7 +38,7 @@ %endif
${_('None')} - ${h.secure_form(h.route_path('edit_user_auth_tokens_delete', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_auth_tokens_delete', user_id=c.user.user_id), request=request)} ${h.hidden('del_auth_token', auth_token.user_api_key_id)} - ${h.secure_form(h.route_path('edit_user_emails_delete', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_emails_delete', user_id=c.user.user_id), request=request)} ${h.hidden('del_email_id', em.email_id)}
- ${h.secure_form(h.route_path('edit_user_emails_add', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_emails_add', user_id=c.user.user_id), request=request)}
diff --git a/rhodecode/templates/admin/users/user_edit_groups.mako b/rhodecode/templates/admin/users/user_edit_groups.mako --- a/rhodecode/templates/admin/users/user_edit_groups.mako +++ b/rhodecode/templates/admin/users/user_edit_groups.mako @@ -19,7 +19,7 @@
- ${h.secure_form(h.route_path('edit_user_groups_management_updates', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_groups_management_updates', user_id=c.user.user_id), request=request)}
diff --git a/rhodecode/templates/admin/users/user_edit_ips.mako b/rhodecode/templates/admin/users/user_edit_ips.mako --- a/rhodecode/templates/admin/users/user_edit_ips.mako +++ b/rhodecode/templates/admin/users/user_edit_ips.mako @@ -30,7 +30,7 @@
${h.ip_range(ip.ip_addr)}
${ip.description}
- ${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), request=request)} ${h.hidden('del_ip_id', ip.ip_id)} ${h.submit('remove_', _('Delete'),id="remove_ip_%s" % ip.ip_id, class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} @@ -51,7 +51,7 @@
- ${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), request=request)}
diff --git a/rhodecode/templates/admin/users/user_edit_ssh_keys.mako b/rhodecode/templates/admin/users/user_edit_ssh_keys.mako --- a/rhodecode/templates/admin/users/user_edit_ssh_keys.mako +++ b/rhodecode/templates/admin/users/user_edit_ssh_keys.mako @@ -21,7 +21,7 @@ ${h.format_date(ssh_key.created_on)} - ${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), request=request)} ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)}
- ${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), request=request)}
diff --git a/rhodecode/templates/base/default_perms_box.mako b/rhodecode/templates/base/default_perms_box.mako --- a/rhodecode/templates/base/default_perms_box.mako +++ b/rhodecode/templates/base/default_perms_box.mako @@ -94,7 +94,7 @@ <%def name="default_perms_box(form_url)"> - ${h.secure_form(form_url, method='POST', request=request)} + ${h.secure_form(form_url, request=request)}
diff --git a/rhodecode/templates/data_table/_dt_elements.mako b/rhodecode/templates/data_table/_dt_elements.mako --- a/rhodecode/templates/data_table/_dt_elements.mako +++ b/rhodecode/templates/data_table/_dt_elements.mako @@ -167,7 +167,7 @@ Edit
- ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=repo_name), request=request)} ${h.submit('remove_%s' % repo_name,_('Delete'),class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")} ${h.end_form()} @@ -240,7 +240,7 @@ Edit
- ${h.secure_form(h.url('delete_repo_group', group_name=repo_group_name),method='delete')} + ${h.secure_form(h.url('delete_repo_group', group_name=repo_group_name),method='delete', request=request)} ${h.submit('remove_%s' % repo_group_name,_('Delete'),class_="btn btn-link btn-danger", onclick="return confirm('"+_ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_count) % (repo_group_name, gr_count)+"');")} ${h.end_form()} @@ -266,7 +266,7 @@ Edit
- ${h.secure_form(h.route_path('user_groups_delete', user_group_id=user_group_id), method='POST', request=request)} + ${h.secure_form(h.route_path('user_groups_delete', user_group_id=user_group_id), request=request)} ${h.submit('remove_',_('Delete'),id="remove_group_%s" % user_group_id, class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this user group: %s') % user_group_name+"');")} ${h.end_form()} diff --git a/rhodecode/templates/files/files_add.mako b/rhodecode/templates/files/files_add.mako --- a/rhodecode/templates/files/files_add.mako +++ b/rhodecode/templates/files/files_add.mako @@ -27,7 +27,7 @@
${self.breadcrumbs()}
- ${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', method='POST', enctype="multipart/form-data", class_="form-horizontal", request=request)} + ${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', enctype="multipart/form-data", class_="form-horizontal", request=request)}
@@ -121,7 +121,7 @@ button.addClass('clicked'); } }); - + $('#specify-custom-path').on('click', function(e){ e.preventDefault(); $('#specify-custom-path-container').hide(); diff --git a/rhodecode/templates/files/files_delete.mako b/rhodecode/templates/files/files_delete.mako --- a/rhodecode/templates/files/files_delete.mako +++ b/rhodecode/templates/files/files_delete.mako @@ -27,7 +27,7 @@
${self.breadcrumbs()}
- ${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', method='POST', class_="form-horizontal", request=request)} + ${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', class_="form-horizontal", request=request)}
diff --git a/rhodecode/templates/files/files_edit.mako b/rhodecode/templates/files/files_edit.mako --- a/rhodecode/templates/files/files_edit.mako +++ b/rhodecode/templates/files/files_edit.mako @@ -42,7 +42,7 @@
- ${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', method='POST', request=request)} + ${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', request=request)}
diff --git a/rhodecode/templates/forks/fork.mako b/rhodecode/templates/forks/fork.mako --- a/rhodecode/templates/forks/fork.mako +++ b/rhodecode/templates/forks/fork.mako @@ -27,7 +27,7 @@ ${self.breadcrumbs()}
- ${h.secure_form(h.route_path('repo_fork_create',repo_name=c.rhodecode_db_repo.repo_name), method='POST', request=request)} + ${h.secure_form(h.route_path('repo_fork_create',repo_name=c.rhodecode_db_repo.repo_name), request=request)}
diff --git a/rhodecode/templates/pullrequests/pullrequest.mako b/rhodecode/templates/pullrequests/pullrequest.mako --- a/rhodecode/templates/pullrequests/pullrequest.mako +++ b/rhodecode/templates/pullrequests/pullrequest.mako @@ -22,7 +22,7 @@ ${self.repo_page_title(c.rhodecode_db_repo)}
- ${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', method='POST', request=request)} + ${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', request=request)} ${self.breadcrumbs()} diff --git a/rhodecode/templates/pullrequests/pullrequest_merge_checks.mako b/rhodecode/templates/pullrequests/pullrequest_merge_checks.mako --- a/rhodecode/templates/pullrequests/pullrequest_merge_checks.mako +++ b/rhodecode/templates/pullrequests/pullrequest_merge_checks.mako @@ -47,7 +47,7 @@ % endif
- ${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', method='POST', request=request)} + ${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', request=request)} <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> ${_('refresh checks')} diff --git a/rhodecode/templates/pullrequests/pullrequest_show.mako b/rhodecode/templates/pullrequests/pullrequest_show.mako --- a/rhodecode/templates/pullrequests/pullrequest_show.mako +++ b/rhodecode/templates/pullrequests/pullrequest_show.mako @@ -52,7 +52,7 @@ %if c.allowed_to_update:
% if c.allowed_to_delete: - ${h.secure_form(h.route_path('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id), method='POST', request=request)} + ${h.secure_form(h.route_path('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id), request=request)} ${h.submit('remove_%s' % c.pull_request.pull_request_id, _('Delete'), class_="btn btn-link btn-danger no-margin",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} ${h.end_form()}