Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acme, allow saving 100+ certificate SAN settings staying under 5000 POST variables by not submitting empty fields #626

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,14 @@ function table_domains_listitem_change(tableId, fieldId, rowNr, field) {
<script type="text/javascript">
//<![CDATA[
events.push(function() {
$('form').submit(function(event){
// disable all elements that dont have a value to avoid posting them as it could be sending
// more than 5000 variables which is the php default max for less than 100 san's which acme does support
// p.s. the jquery .find(['value'='']) would not find newly added empty items) so we use .filter(...)
$(this).find(':input').filter(function() { return !this.value }).attr("disabled", "disabled")
return true;
});

/*
$('#stats_enabled').click(function () {
updatevisibility();
Expand Down