Escaping filename.
authorJavier Bassi <profetasdelmetal@gmail.com>
Sat, 22 Oct 2011 02:35:10 +0000 (00:35 -0200)
committerJavier Bassi <profetasdelmetal@gmail.com>
Sat, 22 Oct 2011 02:35:10 +0000 (00:35 -0200)
apache/create_virt.cgi

index 906a338..3af0698 100755 (executable)
@@ -118,7 +118,7 @@ else {
        # Use a user-specified file
        $f = $in{'file'};
        }
--r $f || open(FILE, ">>$f") || &error(&text('cvirt_efile', $f, $!));
+-r $f || open(FILE, ">>$f") || &error(&text('cvirt_efile', &html_escape($f), $!));
 close(FILE);
 
 &lock_apache_files();