]> source.dussan.org Git - nextcloud-server.git/commitdiff
use regex which was suggested by dragotin
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 17 Dec 2012 11:28:34 +0000 (12:28 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 17 Dec 2012 11:28:34 +0000 (12:28 +0100)
core/templates/installation.php

index 908e7301062d63f983e6280f5fc9dacc76ba0c8f..3b81d890cf73b61ed851865e01ef46a924538f92 100644 (file)
                        </p>
                        <p class="infield">
                                <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="[^.]+" />
+                               <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; ?>