svn: /web/php-bugs/trunk/ include/functions.php www/bug-pwd-finder.php
| From: | Felipe Pena | Date: | Fri, 01 Jul 2011 02:19:51 +0000 |
| Subject: | svn: /web/php-bugs/trunk/ include/functions.php www/bug-pwd-finder.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11413@lists.php.net to get a copy of this message | ||
felipe Fri, 01 Jul 2011 02:19:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312748
Log:
- Rename function that generates random passwd
Changed paths:
U web/php-bugs/trunk/include/functions.php
U web/php-bugs/trunk/www/bug-pwd-finder.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2011-07-01 02:19:14 UTC (rev 312747)
+++ web/php-bugs/trunk/include/functions.php 2011-07-01 02:19:51 UTC (rev 312748)
@@ -1770,7 +1770,7 @@
/**
* Generates a random password
*/
-function gen_passwd($length = 8)
+function bugs_gen_passwd($length = 8)
{
return substr(md5(uniqid(time(), true)), 0, $length);
}
Modified: web/php-bugs/trunk/www/bug-pwd-finder.php
===================================================================
--- web/php-bugs/trunk/www/bug-pwd-finder.php 2011-07-01 02:19:14 UTC (rev 312747)
+++ web/php-bugs/trunk/www/bug-pwd-finder.php 2011-07-01 02:19:51 UTC (rev 312748)
@@ -36,7 +36,7 @@
if (empty($row['passwd'])) {
$errors[] = "No password found for #$bug_id bug report, sorry.";
} else {
- $new_passwd = gen_passwd();
+ $new_passwd = bugs_gen_passwd();
$dbh->prepare(
'UPDATE bugdb