]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow . in dbname on web install
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 8 Sep 2014 11:41:23 +0000 (13:41 +0200)
committerLukas Reschke <lukas@owncloud.com>
Tue, 9 Sep 2014 07:43:58 +0000 (09:43 +0200)
core/js/setup.js

index aa9dc895479245963db95873b510123ff4069e50..253a12d9e6fdf1ca26ab90039048ddc266b74429 100644 (file)
@@ -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');