From 2d1b53b83521c045053c48966f22819a42f63b58 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 27 May 2008 20:02:56 +0000 Subject: [PATCH] "using standard md5() instead of hash('md5',...), as it's only a pecl extension" --- phpgwapi/inc/class.schema_proc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.schema_proc.inc.php b/phpgwapi/inc/class.schema_proc.inc.php index 3fb57cdeec..9583752a8d 100644 --- a/phpgwapi/inc/class.schema_proc.inc.php +++ b/phpgwapi/inc/class.schema_proc.inc.php @@ -913,7 +913,7 @@ class schema_proc if (isset($this->max_index_length[$this->sType]) && $this->max_index_length[$this->sType] <= 32 && strlen($name) > 30 || strlen($name) >= 64) // even mysql has a limit here ;-) { - $name = "i".substr(hash ('md5', $name),0,29); + $name = "i".substr(md5($name),0,29); } return $name; }