CakeDC / oven

Welcome to Oven. The easiest way to install CakePHP.
Other
141 stars 60 forks source link

Database configuration fails when host is numeric #14

Closed joshwyrick closed 7 years ago

joshwyrick commented 7 years ago

In the DB config form fields, if you input a host that is numeric, then app.php configuration gets mangled at line 220. I'm assuming the problem is the pattern in DATASOURCE_REGEX, line 32 in oven.php. See screenshots below.

Error:

After attempting an IP, then a Rackspace host with a numeric sub-domain, I tried simply "42" to see what would happen. Screenshot is result. All attempts resulted in similar code removal.

error

Default:

default

andrej-griniuk commented 7 years ago

Thanks for reporting. Fixed.