<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>193712</bug_id>
          
          <creation_ts>2007-09-25 07:59 0000</creation_ts>
          <short_desc>net-proxy/SquidGuard-1.2.1-r1 regular expression matching broken</short_desc>
          <delta_ts>2007-09-25 11:57:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://squidguard.org/Doc/known_issues.html</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rlmattson@ieee.org</reporter>
          <assigned_to>net-proxy@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>rlmattson@ieee.org</who>
            <bug_when>2007-09-25 07:59:13 0000</bug_when>
            <thetext>Regular expression URL matching broken in squidguard.

Problem and fix given on official web site.
http://squidguard.org/Doc/known_issues.html



Reproducible: Always

Steps to Reproduce:
Use regular expressions in squidguard configuration ACL.
Actual Results:  
Regular expression matching fails, resulting in URL denial.
(subject to how the filtering rules are composed).


from above link:

squidGuard 1.2.1:
Regex not working

Reason:
Problem in sg.y.in line 2350:
if(aclpass-&gt;dest-&gt;regExp != NULL &amp;&amp; access){
if((result = sgRegExpMatch(aclpass-&gt;dest-&gt;regExp,req-&gt;url)) != 0){
if(aclpass-&gt;access){

Fix/Workaround:
Replace
req-&gt;url
by
req-&gt;strippedurl
Re-run configure, make, make install.
Will be fixed in version 1.3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-09-25 11:31:00 0000</bug_when>
            <thetext>Fixed in 1.2.1-r2, in which I&apos;ve preserved the keywords from the previous revision  (all keywords are stable).

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-09-25 11:57:34 0000</bug_when>
            <thetext>Hmm... sg.y is not regenerated by configure. I had to remake the regexp and tests patches.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>