Commit 15e1ab2f authored by Ingmar Schlecht's avatar Ingmar Schlecht
Browse files

* Now database host names can contain colons ":" so you can also specify ports...

* Now database host names can contain colons ":" so you can also specify ports like "localhost:3306"


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@621 709f56b5-9817-0410-a4d7-c38de5d9e867
parent bb5a4209
2005-04-11 Ingmar Schlecht <ingmar@typo3.org>
* Now database host names can contain colons ":" so you can also specify ports like "localhost:3306"
2005-02-02 Ingmar Schlecht <ingmar@typo3.org>
* Fixed bug #0000734: phpinfo() page results in "Call to undefined function: imagetypes() in class.tx_install.php on line 943"
......@@ -2039,9 +2039,9 @@ From sub-directory:
} else $this->messages[]= $errorMessages[] = "Password '".$value."' was longer than 50 chars (...not saved)";
break;
case "typo_db_host":
if (!ereg("[^[:alnum:]_\.-]",$value) && strlen($value)<50) {
if (!ereg("[^[:alnum:]_\.-:]",$value) && strlen($value)<50) {
if (strcmp(TYPO3_db_host,$value)) $this->setValueInLocalconfFile($lines, '$typo_db_host', $value);
} else $this->messages[]= $errorMessages[] = "Host '".$value."' was not alphanumeric, a-zA-Z0-9_-., or longer than 50 chars (...not saved)";
} else $this->messages[]= $errorMessages[] = "Host '".$value."' was not alphanumeric, a-zA-Z0-9_-:., or longer than 50 chars (...not saved)";
break;
case "typo_db":
if (strlen($value)<50) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment