<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Bug: Apostrophes in Username</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Bug: Apostrophes in Username]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 12 Apr 2026 14:30:25 +0000</pubDate>
  <lastBuildDate>Mon, 10 Apr 2006 11:30:27 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=19223</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Bug: Apostrophes in Username : Thank-you I shall look into these...]]></title>
   <link>https://forums.webwiz.net/bug-apostrophes-in-username_topic19223_post103739.html#103739</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 19223<br /><strong>Posted:</strong> 10&nbsp;April&nbsp;2006 at 11:30am<br /><br />Thank-you I shall look into these issues.]]>
   </description>
   <pubDate>Mon, 10 Apr 2006 11:30:27 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/bug-apostrophes-in-username_topic19223_post103739.html#103739</guid>
  </item> 
  <item>
   <title><![CDATA[Bug: Apostrophes in Username :   When I change the username...]]></title>
   <link>https://forums.webwiz.net/bug-apostrophes-in-username_topic19223_post103714.html#103714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=23460">djlurchg</a><br /><strong>Subject:</strong> 19223<br /><strong>Posted:</strong> 10&nbsp;April&nbsp;2006 at 5:51am<br /><br />When I change the username from FOO to FOO'FOO the username gets changed to FOO''FOO.&nbsp; This is either SQL Injection related or SQL String related.<br><br>OK, figured it out. Here's the code from admin_change_username.asp<br>&nbsp; &lt;code&gt;<br>&nbsp;&nbsp;&nbsp; strNewUsername = formatSQLInput(strNewUsername)<br>&nbsp;&nbsp;&nbsp; &lt;code&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; rsCommon.Fields("UserName") = strNewUsername<br>&nbsp;&nbsp;&nbsp; &lt;code&gt;<br><br>This should be an easy fix. What you did is prepped the input for use in a SQL string where you have to replace single quotation marks with double quotation marks. That's all well and good if you are updating the values through a SQL statement. You obviously aren't in this case. You are opening a recordset and then setting it equal to the new username. <br><br>Is this a simple oversight, or should we be looking for other errors like this?<br><br>BTW, I'm glad no one has to maintain my code, they'd come to my house and wack me upside the head. Borg, you did a nice job of making the code readable. :)<br><br>PS: There is also a bug on the page in this javascript code:<br>alert('The member \'Foo'''' Foo\' has had their username changedto \'Foo'' Foo\'.');<br><br>I always enclose my javascript with double quotes. That would solve _part_ of this issue.<br><br><br><span style="font-size:10px"><br /><br />Edited by djlurchg - 10&nbsp;April&nbsp;2006 at 5:54am</span>]]>
   </description>
   <pubDate>Mon, 10 Apr 2006 05:51:18 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/bug-apostrophes-in-username_topic19223_post103714.html#103714</guid>
  </item> 
 </channel>
</rss>