tbrehm
2010-09-25 0ff3f159b5bcbd2bfed44731e38ab40296a402ee
Fixed: FS#1305 - Webdav user information is not written to domains vhost file.
1 files modified
5 ■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 5 ●●●● patch | view | raw | blame | history
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