Menu

#473 Procmail module Rendering stalls with broken procmailrc

1.760
closed-fixed
nobody
None
5
2019-06-02
2019-06-01
No

Reproduction Procedure

  • Add a line shown below to .procmailrc:
TEST="
  • Open "Procmail Mail Filter" (Index Page)
  • Rendering of page stalls when parsing of .procmailrc starts
  • Problem cannot be solved with Usermin, because "Manually Edit Configuration" button is not rendered.

Cause

in procmail/procmail-lib.pl, line 43-49:
* $fh is the config file.
* $_ contains the content of a line of the config file.

    while(/^\s*([^\s=]+)\s*=([^"]*)"([^"]*)$/) {
        # Quote in environment variable that is not ended!
        local $cont = <$fh>;
        $cont =~ s/\r|\n//g;
        $_ .= "\n".$cont;
        $lnum++;
        }

EOF on local $cont = <$fh>; is not handled.
So, the loop cannot be terminated with mismatched quote.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2019-06-02

    Thanks - we'll fix this in the next release.

     
  • Jamie Cameron

    Jamie Cameron - 2019-06-02
    • status: open --> closed-fixed
     

Log in to post a comment.