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

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
From: "Stephen Biggs" <yyyyy50 AT hotpop DOT com>
To: cygwin AT cygwin DOT com
Date: Fri, 21 Nov 2003 17:42:43 +0200
MIME-Version: 1.0
Subject: Re: Perl PrivoxyWindowOpen missing?
Message-ID: <3FBE4E93.14689.E19312@localhost>
In-reply-to: <3FBE28A6.693146CA@dessent.net>

On 21 Nov 2003 at 7:00, Brian Dessent wrote:

> 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
> 
Ahh... understood, finally...

Thanks, 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