[mirrorbrain-commits] r7987 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Fri, 12 Mar 2010 00:44:10 -0000
Author: poeml
Date: Fri Mar 12 01:44:09 2010
New Revision: 7987

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7987&view=rev
Log:
mod_mirrorbrain:
- bugfix for test on availability on sha1 hashes (typo fixed)

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=7987&r1=7986&r2=7987&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri Mar 12 01:44:09 2010
_at_@ -1878,7 +1878,7 @@
 
                     if (hashbag->md5)
                         ap_rprintf(r, "    <hash type=\"md5\">%s</hash>\n", hashbag->md5);
-                    if (hashbag->sha256)
+                    if (hashbag->sha1)
                         ap_rprintf(r, "    <hash type=\"sha-1\">%s</hash>\n", hashbag->sha1);
                     if (hashbag->sha256)
                         ap_rprintf(r, "    <hash type=\"sha-256\">%s</hash>\n", hashbag->sha256);
_at_@ -1909,7 +1909,7 @@
 
                     if (hashbag->md5)
                         ap_rprintf(r, "        <hash type=\"md5\">%s</hash>\n", hashbag->md5);
-                    if (hashbag->sha256)
+                    if (hashbag->sha1)
                         ap_rprintf(r, "        <hash type=\"sha1\">%s</hash>\n", hashbag->sha1);
                     if (hashbag->sha256)
                         ap_rprintf(r, "        <hash type=\"sha256\">%s</hash>\n", hashbag->sha256);
_at_@ -2154,7 +2154,7 @@
         if (hashbag != NULL) {
                     if (hashbag->sha256)
                         ap_rprintf(r, "  <li>SHA-256 sum: <tt>%s</tt></li>\n", hashbag->sha256);
-                    if (hashbag->sha256)
+                    if (hashbag->sha1)
                         ap_rprintf(r, "  <li>SHA-1 sum: <tt>%s</tt></li>\n", hashbag->sha1);
                     if (hashbag->md5)
                         ap_rprintf(r, "  <li>MD5 sum: <tt>%s</tt></li>\n", hashbag->md5);




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Mar 12 2010 - 00:44:11 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT