delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/21/10:01:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3FBE28A6.693146CA@dessent.net>
Date: Fri, 21 Nov 2003 07:00:54 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
X-Accept-Language: en,en-US
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Perl PrivoxyWindowOpen missing?
References: <3FBE3E32 DOT 28962 DOT A197CC AT localhost>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019