From: Jörn Friedrich Dreyer Date: Mon, 8 Sep 2014 11:41:23 +0000 (+0200) Subject: allow . in dbname on web install X-Git-Tag: v7.0.3alpha1~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e5d9e0a80aa7b9cf707390b1f9b4312e34a4a47;p=nextcloud-server.git allow . in dbname on web install --- diff --git a/core/js/setup.js b/core/js/setup.js index aa9dc895479..253a12d9e6f 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -23,18 +23,21 @@ $(document).ready(function() { $('#use_other_db').slideUp(250); $('#use_oracle_db').slideUp(250); $('#sqliteInformation').show(); + $('#dbname').attr('pattern','[0-9a-zA-Z$_-]+'); }); $('#mysql,#pgsql,#mssql').click(function() { $('#use_other_db').slideDown(250); $('#use_oracle_db').slideUp(250); $('#sqliteInformation').hide(); + $('#dbname').attr('pattern','[0-9a-zA-Z$_-]+'); }); $('#oci').click(function() { $('#use_other_db').slideDown(250); $('#use_oracle_db').show(250); $('#sqliteInformation').hide(); + $('#dbname').attr('pattern','[0-9a-zA-Z$_-.]+'); }); $('input[checked]').trigger('click');