X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=drupal-emptypass.patch;h=0fbf5c03483d9b22c2a27cc0a6a2edd796ae1aa6;hb=6177849edc197df6cd804ae11b85cd83c02cec38;hp=dbacbc316fe84ede559de406c6f66256b66b4d94;hpb=f45b3274f990395cfd89a93a2fa778e2fa9e3560;p=packages%2Fdrupal.git diff --git a/drupal-emptypass.patch b/drupal-emptypass.patch index dbacbc3..0fbf5c0 100644 --- a/drupal-emptypass.patch +++ b/drupal-emptypass.patch @@ -1,11 +1,23 @@ ---- ./includes/database.mysql.inc~ 2005-04-14 21:50:23.000000000 +0300 -+++ ./includes/database.mysql.inc 2005-05-18 18:48:24.970031862 +0300 -@@ -28,7 +28,7 @@ - $url['host'] = $url['host'] .':'. $url['port']; +# without replication patch: +#--- ./includes/database.mysql.inc~ 2005-04-14 21:50:23.000000000 +0300 +#+++ ./includes/database.mysql.inc 2005-05-18 18:48:24.970031862 +0300 +#@@ -28,7 +28,7 @@ +# $url['host'] = $url['host'] .':'. $url['port']; +# } +# +#- $connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE) or die(mysql_error()); +#+ $connection = mysql_connect($url['host'], $url['user'], @$url['pass'], TRUE) or die(mysql_error()); +# mysql_select_db(substr($url['path'], 1)) or die('unable to select database'); +# +# return $connection; +--- ./includes/database.mysql.inc~ 2005-10-28 22:32:31.000000000 +0300 ++++ ./includes/database.mysql.inc 2005-10-28 22:32:57.000000000 +0300 +@@ -29,7 +29,7 @@ } -- $connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE) or die(mysql_error()); -+ $connection = mysql_connect($url['host'], $url['user'], @$url['pass'], TRUE) or die(mysql_error()); - mysql_select_db(substr($url['path'], 1)) or die('unable to select database'); - - return $connection; + // For replication setups, we will assume that dieing is bad +- $connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE); ++ $connection = mysql_connect($url['host'], $url['user'], @$url['pass'], TRUE); + if(!is_resource($connection) && $critical) { + die(mysql_error()); + }