tbrehm
2010-09-25 0ff3f159b5bcbd2bfed44731e38ab40296a402ee
server/plugins-available/apache2_plugin.inc.php
@@ -1155,6 +1155,7 @@
    */
   private function _writeHtDigestFile($filename, $username, $authname, $pwdhash ) {
      $changed = false;
      if(is_file($filename)) {
      $in = fopen($filename, 'r');
      $output = '';
      /*
@@ -1176,13 +1177,15 @@
            $output .= $line . "\n";
         }
      }
         fclose($in);
      }
      /*
       * if we didn't change anything, we have to add the new user at the end of the file
      */
      if (!$changed) {
         $output .= $username . ':' . $authname . ':' . $pwdhash . "\n";
      }
      fclose($in);
      /*
       * Now lets write the new file