Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Safari/Mac MapPath problem

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Has anyone else run into an ivalid character error on safari for mac when using mappath?

}...the bane of my life!
 
I've done pages that use MapPAth and work fine from Safari but MapPath runs on the server so it shouldn't matter about the browser version.

Lets see some of the problematic code.
 
Yep.
Sometimes it is hard coded somtimes the mappath is coming from a querystring. I am wondering if safari deals with url parameters differently
I rememebr that it deals with line breaks differently.

}...the bane of my life!
 
I'm not understanding why the browaser would make a difference. You use MapPath to generate a guestimated physical path on the server for a virtual path. If you wanted the path of the page you were currently executing then you should be able to just do something like:
Server.MapPath("./" & Server.RequestVariables("SCRIPT_NAME"))

As far as using Server.MapPath in conjunction with the Querystring...I'm not sure I see what the use is, unless you were calling it on a single passed querystring variable, in which case it should be folowing standard encoding (which is decoded by IIS before being placed into the Querystring collection).

Perhaps an example of what your doing would be helpful.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top