Print Page | Close Window

Bug in HttpAPI (and fix)

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=29138
Printed Date: 01 April 2026 at 12:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Bug in HttpAPI (and fix)
Posted By: deoiub
Subject: Bug in HttpAPI (and fix)
Date Posted: 18 February 2011 at 9:24am
In using the HttpAPI to automatically login users from my main PHP site into the Web Wiz Forum, I encountered a bug in HttpAPI.asp file that was returning an XML error.

The script is correctly encoding the Username's with Server.HTMLEncode(), however it isn't doing the same for the "User_code", which can also contain non XML friendly characters.

I have modified this one function to:
vbCrLf & "   <CookieData>" &  Server.HTMLEncode(rsCommon("User_code")) & "</CookieData>" & _



Posting this to help others, and so this can be fixed in future releases.




Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 February 2011 at 8:44am
Thanks for this will make sure that it is updated for the next release.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net