Commit 9b4cf0ad authored by Michael Stucki's avatar Michael Stucki
Browse files

* Fixed bug #0001239: Install tool does not accept hyphen in database host name

* Added a die() call to protect the display of phpinfo() in misc/phpcheck/incfile.php


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_3-8@773 709f56b5-9817-0410-a4d7-c38de5d9e867
parent ea8796ff
2005-07-02 Michael Stucki <michael@typo3.org>
* Fixed bug #0001239: Install tool does not accept hyphen in database host name
* Added a die() call to protect the display of phpinfo() in misc/phpcheck/incfile.php
2005-06-06 Andreas Otto <andreas.otto@dkd.de>
* t3lib/class.t3lib_userauth.php: Implemented two hooks in the logoff() method. One hook for doing operations __before__ logoff() destroys the current session and one hook for doing operations __after__ the session was destroyed.
......
<?php
// This checks for my own IP at home. You can just remove the if-statement.
if (1==0 || (substr($_SERVER['REMOTE_ADDR'],0,7)!='192.168' && $_SERVER['REMOTE_ADDR']!='127.0.0.1')) {
die('In the source distribution of TYPO3, this script is disabled by a die() function call.<br/><b>Fix:</b> Open the file misc/phpcheck/incfile.php and remove/out-comment the line that outputs this message!');
}
SetCookie("test_script_cookie", "Cookie Value!", 0, "/");
......
......@@ -2075,7 +2075,7 @@ 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)";
break;
......
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