Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 'bug' Just being picky, unless I am wrong..
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Schwanke
New Member

77 Posts

Posted - 25 August 2002 :  00:16:09  Show Profile  Visit Schwanke's Homepage
In post_info.asp around line 1202 and 1451 you have the code:

if (left(lcase(txtAddress), 7) <> "http://" and left(lcase(txtAddress), 8) <> "https://" and left(lcase(txtAddress), 8) <> "file:///") and (txtAddress <> "") then
Err_Msg = Err_Msg & "<li>You Must prefix the Address with <b>http://</b>, <b>https://</b> or <b>file:///</b></li>"
end if

But prior to thate code you have code that gives an error "You must enter an address for the new url."

Wouldnt it make more sense to oput the the last test of txtAddress <> "" in the previos set with its brother testing for " "?

I only say this cuz some mods I am doing I have to allow for adding local pages to the web links and so I am commenting out these tests. But I still dont want a user submiting a blank name. (And I would think I would want the error to be the previos error anyway.)

It just seems logically correct this way to me. Feel free to explain it to me differently.

:)

Its not gunna break anything as is but if you ever edit or move that part of the code you might loose the test for "" or not remember where you put it. :)


<><

Edited by - Schwanke on 25 August 2002 00:58:05

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 August 2002 :  09:04:23  Show Profile
you're just being picky
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07