Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: checking a url to make sure it works

by benn (Vicar)
on Feb 20, 2004 at 12:37 UTC ( #330528=note: print w/replies, xml ) Need Help??

in reply to checking a url to make sure it works

You'll probably need to do a few "sanity checks" as well on the entered you've noticed, if the user inputs "", then you'll end up trying to fetch "http://" if you simply add an "http://" to the beginning without checking it first. A simple way round this would be to strip any "http://" part from the entered string with a regex, but for a more solid approach, check out some of the CPAN modules available (such as CGI::Untaint::url) for this task.

  • Comment on Re: checking a url to make sure it works

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://330528]
[Corion]: Hmmm. Maybe I can still fake the one spot where I want/need a window function in SQLite... I think I'm never really interested in the real "next" image (not hidden/deleted)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-03-23 17:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (295 votes). Check out past polls.