Forums

vimcolor bug (2 posts)

  1. Arricc
    Member
    Posted 5 years ago #

    My /tmp filled up.

    Took me a while to track it down to vimcolor. It writes out a code snippet to the temp dir, runs vimcolor over that file and generates a second file. Then, basically, returns the second file without removing either. Thus, very slowly, eventually chews up the disk space.

    
    --- plugins/dist/wp-vimcolor.php     2005-10-04 06:13:06.000000000 +0100
    +++ plugins/vimcolor/wp-vimcolor.php     2007-02-14 22:40:33.086261640 +0000
    @@ -95,6 +95,8 @@
                $handle = fopen($out_file, "r");
                        $html = fread($handle, filesize($out_file));
                fclose($handle);
    +           unlink($out_file);
    +           unlink($in_file);
           if( $multiline ){
                        $html = preg_replace('/r/s','',$html);
                        $html = preg_replace('/n/s','',$html);
    

    so, quick two line fix and thats it sorted.

  2. DreamDreams
    Member
    Posted 4 years ago #

    Thanks for the fix and sorry for my inactive. I've submitted the change to SVN.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags