]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #632 from owncloud/fix_629
authorThomas Müller <thomas.mueller@tmit.eu>
Sun, 6 Jan 2013 22:03:02 +0000 (14:03 -0800)
committerThomas Müller <thomas.mueller@tmit.eu>
Sun, 6 Jan 2013 22:03:02 +0000 (14:03 -0800)
fix pattern for database names - #629

1  2 
core/templates/installation.php

index 28fbf29b540e7cef1f995b695fc1686603c09867,3b81d890cf73b61ed851865e01ef46a924538f92..3128c4f2e7040233da77efe8427149420285e97c
                                <label for="dbpass" class="infield"><?php echo $l->t( 'Database password' ); ?></label>
                                <input type="password" name="dbpass" id="dbpass" value="<?php print OC_Helper::init_var('dbpass'); ?>" />
                        </p>
 -                      <p class="infield">
 +                      <p class="infield groupmiddle">
                                <label for="dbname" class="infield"><?php echo $l->t( 'Database name' ); ?></label>
-                               <input type="text" name="dbname" id="dbname" value="<?php print OC_Helper::init_var('dbname'); ?>" autocomplete="off" pattern="[0-9a-zA-Z$_]+" />
+                               <input type="text" name="dbname" id="dbname" value="<?php print OC_Helper::init_var('dbname'); ?>" autocomplete="off" pattern="[0-9a-zA-Z$_-]+" />
                        </p>
                </div>
                <?php endif; ?>