Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Http protocol
Message
From
28/12/2001 09:29:39
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
28/12/2001 09:26:02
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00598769
Message ID:
00598770
Views:
15
>I have a URL field bound to a textbox on a form. Next to the textbox is a button that will open IE; or whatever the registered browser is; and navigate to the URL in the textbox.
>
>The users have found out that they can enter local addresses (c:\ or \\computername\c:) and be able to browse them. My client does not like this!
>
>They want me to block navigating to any URL that is not http protocol. Is there any way to do this other than forcing them to put 'http://' at the beginning of the URL?
>
>What I'm looking for is a function that will take a string and return a True if it is http and False if not. Does anything like this exist?

Hi,

I think that you will need to force the HTTP://

Best way would be to add it in code as you transfer the URL to be browser control from your textbox, then it won't involve any more work for the users.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform