Bug #304

SQL password that contains double quote results in internal error

Added by Alex Cartwright over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:2010-06-14
Priority:Low Due date:
Assignee:Alex Cartwright % Done:

100%

Category:TangoCMS::Installation
Target version:2.5.5
PHP Version:

Description

Upon installation when entering in your SQL details and your password contains a double quote, the installer will do all needed SQL tasks however when this password is written to the config.ini.php file it results in the following PHP warning on the next stage:

Warning: syntax error, unexpected '=' in ../config/default/config.ini.php on line 176 in /media/httpdev/public/tangocms/git-tangocms/application/libraries/Config/Ini.php on line 37

This ultimately results in an internal error

Uncaught exception in "/media/httpdev/public/tangocms/git-tangocms/application/libraries/Config.php" on line 42 with code "ZULA-000" 

Project Version: unknown
Time & Date: 2010-06-14T21:24:01+01:00
Request Method: GET
Exception Thrown: Config_InvalidValue
Message: unable to load config, value given is not an array

Stack Trace:
#0 /media/httpdev/public/tangocms/git-tangocms/application/zula/zula.php(337): Config->load(Object(Config_ini))
#1 /media/httpdev/public/tangocms/git-tangocms/index.php(91): Zula->loadMainConfig('../config/defau...')
#2 /media/httpdev/public/tangocms/git-tangocms/install/index.php(19): require('/media/httpdev/...')
#3 {main}

It appears there is no way to escape the double quote character in a file that gets parsed by parse_ini_file(), so we shall have to stop double quotes from being entered.

History

Updated by Alex Cartwright over 1 year ago

Applied in changeset commit:"2532541fc55cd7854a3f8e9fee55c987fae3089e".

Also available in: Atom PDF