Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3FBE28A6.693146CA@dessent.net>
Date: Fri, 21 Nov 2003 07:00:54 -0800
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Perl PrivoxyWindowOpen missing?
References: <3FBE3E32.28962.A197CC@localhost>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host.linuxsv3.net
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - dessent.net
Note-from-DJ: This may be spam

Stephen Biggs wrote:

> > This is actually due to a bug/config error in Privoxy.  One of its popup
> > blocking filters changes all occurances of Javascript "open()" in page
> > sources to the one you're seeing.  Unfortunately, that action was
> > wrongfully applied to your URL.  I believe this selectivity has been
> > much improved, so you should definitely grab the latest actionsfile from
> > the site (or CVS.)  This doesn't have anything to do with Cygwin or
> > Perl, they're both innocent.

> I am a bit confused.  I am running this script strictly command-line in
> Cygwin.  There is no URL or browser activity involved.  While I might
> have Privoxy installed, it seems to me that the actual call in Perl is
> not getting interpreted; that is, the call is stopped by Perl before it
> even gets to Privoxy due to some missing library interface.
> 
> Or, Perl calls Javascript as part of its operation?  What am I missing
> here?

When you downloaded the script from the web it was passed through
Privoxy, which was unable to distinguish it from a html file and thus
applied its filters.  If you disable Privoxy and download another copy
you'll find that all of the "PrivoxyWindowOpen" calls are really calls
to "open".  Alternatively, you could just do: 

perl -i.bak -pe 's/PrivoxyWindowOpen/open/g' filename.pl

This will replace all occurances in the file (making a .bak backup in
case something's wrong.)

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

