* Now database host names can contain colons ":" so you can also specify ports like...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Mon, 11 Apr 2005 18:01:38 +0000 (18:01 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Mon, 11 Apr 2005 18:01:38 +0000 (18:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@621 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/install/ChangeLog
typo3/sysext/install/mod/class.tx_install.php

index d04d9f8..f49a6f6 100644 (file)
@@ -1,3 +1,7 @@
+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"
index 97ff37e..d0ce58f 100755 (executable)
@@ -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)  {