[PATCH] Apache::ConfigFile - wrong parsing of Order deny,allow directive

Lubomir Host rajo at platon.sk
Sat Mar 8 16:10:44 UTC 2008


Hellou,

I have discovered, than Apache::ConfigFile didn't parse the following
config correctly:

    <Directory /some/directory>
        Order deny,allow
        Deny from all
        Allow from none
    </Directory>

Dump show the following data:

...
 'Directory' => {
    '/some/directory' => [
        {
          'Order' => [ 
                       [ 
                         'deny'
                       ]
                     ],
          'Allow' => [ 
                       [ 
                         'from',
                         'none'
                       ]
                     ],
          'Deny' => [ 
                      [ 
                        'from',
                        'all'
                      ]
                    ]
        }
...
                                                                        ],
Last word "allow" from line "Order deny,allow" is missing

Attached patch works for me.

rajo

-- 
  ,''`.  Lubomir Host 'rajo' <rajo AT platon.sk>    ICQ #:  257322664
 : :' :  Jabber: rajo AT jabber.platon.sk      VoIP: callto://rajo207
 `. `'   WWW: http://rajo.platon.sk/  Platon Group: http://platon.sk/
   `-    GnuPG key: DC0C C7EA 55C8 B089 C41D 944A F251 A93A 2361 A82F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Apache-ConfigFile-order-deny-allow.patch
Type: text/x-diff
Size: 721 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080308/bec60104/attachment.patch 


More information about the pkg-perl-maintainers mailing list