• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Installation - Database Name - ([a-z0-9_-])

Started by M.Boxma, November 30, 2020, 11:16:27 PM  ( Read 11,525 times )

M.Boxma

Hi,

I'm trying to install a new WebsiteBaker on my website, but the host providers a database name with capital letters and i can't get it changed.

Is there a workaround so i can use capital letters in the database name field?

    hgs

    LG Harald

    "Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

    "Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

    dbs

    Hello, we will fix this. But for the moment you can try this.
    In installer/save.php line 280,

    replace this
    if (\preg_match('/[^a-z0-9_-]+/', $aInputs['database_name'])) {

    with this (a additional i)
    if (\preg_match('/[^a-z0-9_-]+/i', $aInputs['database_name'])) {

      Luisehahne

      Quote from: M.Boxma on November 30, 2020, 11:16:27 PM
      Hi,

      I'm trying to install a new WebsiteBaker on my website, but the host providers a database name with capital letters and i can't get it changed.

      Is there a workaround so i can use capital letters in the database name field?

      Please test the new package  WebsiteBaker 2.13.0 RC1 r7

      Dietmar


        Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

        \n\n