use regex which was suggested by dragotin

This commit is contained in:
Georg Ehrke 2012-12-17 12:28:34 +01:00
parent a0fe53d09a
commit bbe805b665
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@
</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; ?>