can not create new database with php 7.3

Issue #376 closed
Former user created an issue

I can not create a new database because I get following error with PHP 7.3.2:

Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /usr/share/phpliteadmin/phpliteadmin.php on line 726:

line 726: $str = preg_replace('@[^\w-.]@','', $_POST['new_dbname']);

My workaround: line 726: $str = preg_replace('@\W@','', $_POST['new_dbname']);

Comments (4)

  1. Log in to comment