RE: Does CGI.pm have escapeURL?
The HTML escaping feature of CGI is called with 'use CGI qw(:escapeHTML);'. It must be called explicitly or it will not be imported into your namespace. As a function it can be called as escapeHTML("some stuff & some other stuff") though I'm sure you can use the OO method. The URL escaping feature is similar, called with 'use CGI qw(:escape);'. -Original Message- From: Adam Morton [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:23 PM To: 'John Brooking'; Beginners CGI Subject: Re: Does CGI.pm have escapeURL? The URL encoding versions are in CGI::Util and are just called 'escape' and 'unescape'. I don't know why they are not documented in the CGI perldoc, or even the CGI::Util perldoc. I guess they are considered private, although they are handy. -Adam - Original Message - From: "Camilo Gonzalez" <[EMAIL PROTECTED]> To: "'John Brooking'" <[EMAIL PROTECTED]>; "Beginners CGI" <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 2:15 PM Subject: RE: Does CGI.pm have escapeURL? > Try 'escapeHTML()'. > > -Original Message- > From: John Brooking [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 12:49 PM > To: Beginners CGI > Subject: Does CGI.pm have escapeURL? > > > Does CGI.pm have some kind of URL escape function, > similar to escapeHTML? I couldn't find any > documentation on it in "perldoc CGI", and I tried the > obvious, "escapeURL", with negative results. > > I suppose that the reason there is no obvious function > for this is if you have a form submitted with GET, the > escaping happens automatically. But what I need to do > is build my own query string to redirect to, so I need > to do the escaping myself. I know what the algorithm > is and have even done it before, but if CGI.pm > provides it, I should be using that one, right? > > - John > > > __ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does CGI.pm have escapeURL?
The URL encoding versions are in CGI::Util and are just called 'escape' and 'unescape'. I don't know why they are not documented in the CGI perldoc, or even the CGI::Util perldoc. I guess they are considered private, although they are handy. -Adam - Original Message - From: "Camilo Gonzalez" <[EMAIL PROTECTED]> To: "'John Brooking'" <[EMAIL PROTECTED]>; "Beginners CGI" <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 2:15 PM Subject: RE: Does CGI.pm have escapeURL? > Try 'escapeHTML()'. > > -Original Message- > From: John Brooking [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 12:49 PM > To: Beginners CGI > Subject: Does CGI.pm have escapeURL? > > > Does CGI.pm have some kind of URL escape function, > similar to escapeHTML? I couldn't find any > documentation on it in "perldoc CGI", and I tried the > obvious, "escapeURL", with negative results. > > I suppose that the reason there is no obvious function > for this is if you have a form submitted with GET, the > escaping happens automatically. But what I need to do > is build my own query string to redirect to, so I need > to do the escaping myself. I know what the algorithm > is and have even done it before, but if CGI.pm > provides it, I should be using that one, right? > > - John > > > __ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does CGI.pm have escapeURL?
> -Original Message- > From: John Brooking [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 1:49 PM > To: Beginners CGI > Subject: Does CGI.pm have escapeURL? > > > Does CGI.pm have some kind of URL escape function, > similar to escapeHTML? I couldn't find any > documentation on it in "perldoc CGI", and I tried the > obvious, "escapeURL", with negative results. > > I suppose that the reason there is no obvious function > for this is if you have a form submitted with GET, the > escaping happens automatically. But what I need to do > is build my own query string to redirect to, so I need > to do the escaping myself. I know what the algorithm > is and have even done it before, but if CGI.pm > provides it, I should be using that one, right? > > - John The URI::Escape module provides this. Part of the LWP distribution, IIRC. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does CGI.pm have escapeURL?
Try 'escapeHTML()'. -Original Message- From: John Brooking [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:49 PM To: Beginners CGI Subject: Does CGI.pm have escapeURL? Does CGI.pm have some kind of URL escape function, similar to escapeHTML? I couldn't find any documentation on it in "perldoc CGI", and I tried the obvious, "escapeURL", with negative results. I suppose that the reason there is no obvious function for this is if you have a form submitted with GET, the escaping happens automatically. But what I need to do is build my own query string to redirect to, so I need to do the escaping myself. I know what the algorithm is and have even done it before, but if CGI.pm provides it, I should be using that one, right? - John __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]