<?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 : Edit -&gt; delete url change BUG</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 : Edit -&gt; delete url change BUG]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 13:28:38 +0000</pubDate>
  <lastBuildDate>Thu, 28 Oct 2004 09:42:32 +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=12295</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[Edit -&gt; delete url change BUG : As I stated I hadn&amp;#039;t ctested...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68403.html#68403</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=9441">ljamal</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 28&nbsp;October&nbsp;2004 at 9:42am<br /><br />As I stated I hadn't ctested it. Here is the tested code that works.<br /><font size="1"><br />' LJAMAL MOD 26 OCT 2004 <br />' CORRECTS THE ABILITY FOR USERS TO DELETE POST BY CHANGING URL <br />If lngDelMsgAuthorID = lngLoggedInUserID then <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim RSCheck <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RSCheck = Server.CreateObject("ADODB.Recordset") <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strSQL = "select " & strDbTable & "Thread.Thread_ID From "& strDbTable & "Thread WHERE " &_ <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strDbTable  &"Thread.Topic_ID in (select "&strDbTable &"Thread.Topic_ID from " & strDbTable & "Thread where "&_ <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strDbTable  & "Thread.Thread_ID =" & lngMessageID & ") and "&_ <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strDbTable  &"Thread.Message_date &gt; (select "&strDbTable &"Thread.Message_date from " & strDbTable & "Thread where "&_ <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strDbTable  & "Thread.Thread_ID =" & lngMessageID & ");" <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RSCheck.Open strSQL, adoCon <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not RSCheck.EOF then <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;blnDelete = False <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RSCheck.Close <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RSCheck = Nothing <br />end if <br />' END MOD <br /></font><span style="font-size:10px"><br /><br />Edited by ljamal</span>]]>
   </description>
   <pubDate>Thu, 28 Oct 2004 09:42:32 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68403.html#68403</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : I have cracked it :), it was not...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68401.html#68401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=11550">theSCIENTIST</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 28&nbsp;October&nbsp;2004 at 7:42am<br /><br />I have cracked it :), it was not the simple patch (couple of lines of code) I wanted, but it works fine.<br /><br />Again insert this code after line 147 in delete_post.asp:<br /><br /><table width="99%"><tr><td><pre class="BBcode">'/* =================================================== */<br />'/* Patch by theSCIENTIST on 28 October  2004&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;*/<br />'/* =================================================== */<br />'/* This patch fixes the vulnerability in which&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  */<br />'/* a user could delete his own posts, regardless of&nbsp;&nbsp;&nbsp;&nbsp;*/<br />'/* wether theres replies to it or not. The Author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />'/* can still delete the post if its the only post&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />'/* in that Topic or if its the last post in the Topic. */<br />'/* Admins priviledges have not been  changed.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;*/<br />'/* =================================================== */<br /><br />'/* If the user requesting deletion is the same as the user that posted the post to be deleted then... */<br />If lngDelMsgAuthorID = lngLoggedInUserID Then <br /><br />  Dim ducbRS, ducbTopic, ducbDelPostDate, ducbCount, ducbLastPostDate<br /><br />  '/* This first query is only needed to determine the date of the  */<br />  '/* post to be deleted, and to get the Topic that post belongs to */<br />  Set ducbRS = Server.CreateObject("ADODB.Recordset") <br /><br />  strSQL = "SELECT " & strDbTable & "Thread.Thread_ID, " & strDbTable & "Thread.Topic_ID, " & strDbTable & "Thread.Author_ID, " & strDbTable & "Thread.Message_date "<br />  strSQL = strSQL & "FROM " & strDbTable & "Thread "<br />  strSQL = strSQL & "WHERE " & strDbTable & "Thread.Thread_ID=" & lngMessageID & ";"<br /><br />  ducbRS.Open strSQL, adoCon<br />  <br />  If Not ducbRS.EOF Then<br />&nbsp;&nbsp;&nbsp;&nbsp;ducbTopic = ducbRS("Topic_ID")<br />&nbsp;&nbsp;&nbsp;&nbsp;ducbDelPostDate = ducbRS("Message_date")<br />  End If<br /><br />  '/* Close recordset */<br />  ducbRS.Close<br />  Set ducbRS = Nothing<br /><br />  '/* This second query will get and count all posts belonging to the Topic in question */<br />  Set ducbRS = Server.CreateObject("ADODB.Recordset")<br /><br />  strSQL = "SELECT " & strDbTable & "Thread.Thread_ID, " & strDbTable & "Thread.Topic_ID, " & strDbTable & "Thread.Author_ID, " & strDbTable & "Thread.Message_date "<br />  strSQL = strSQL & "FROM " & strDbTable & "Thread "<br />  strSQL = strSQL & "WHERE " & strDbTable & "Thread.Topic_ID=" & ducbTopic & ";"<br /><br />  '/* Dynamic recorset because we need to ride it */<br />  ducbRS.CursorType = 2<br /><br />  ducbRS.Open strSQL, adoCon<br /><br />  '/* Do the counting */<br />  Do While Not ducbRS.EOF<br />&nbsp;&nbsp;&nbsp;&nbsp;ducbCount = ducbCount + 1<br />&nbsp;&nbsp;&nbsp;&nbsp;ducbRS.MoveNext<br />  Loop<br /><br />  '/* If theres more than 1 post in this Topic then... */<br />  If ducbCount &gt; 1 Then<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'/* Move to last post and collect its date */<br />&nbsp;&nbsp;&nbsp;&nbsp;ducbRS.MoveLast<br />&nbsp;&nbsp;&nbsp;&nbsp;ducbLastPostDate = ducbRS("Message_date")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'/* If the date of the post to be deleted is older than the last post, in effect if  */<br />&nbsp;&nbsp;&nbsp;&nbsp;'/* this is true then theres a new reply to the post, so dont allow delete operation */<br />&nbsp;&nbsp;&nbsp;&nbsp;If ducbDelPostDate &lt; ducbLastPostDate Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;blnDelete = False<br />&nbsp;&nbsp;&nbsp;&nbsp;End If<br /><br />  End If<br /><br />  '/* Close recordset */<br />  ducbRS.Close<br />  Set ducbRS = Nothing<br /><br />End If<br />'/* =================================================== */</pre></td></tr></table><br /><br />I had to make 2 DB calls because the Topic_ID is not passed along from the delete request, but you can change the request to include a TID and skip the first DB query if you want.<br /><br />NOTE: The parsing of this post actually disrupts the code and it may add spaces to it, so if you want to see the code ready for cut and paste I have set a text file of it here:<br /><br /><a href="http://www.mylittlehost.com/resources/projects/delete_bug.txt" target="_blank"><strong>View code</strong></a><br /><br />You can see in the queries that I'm requesting the Author_ID also even thou I don't use it, this was because I wanted to make it so if the same Author posts several posts and no other Author replies to it, he can delete at will, I guess I'll do this later on.<br /><br />Tell me how it preforms.]]>
   </description>
   <pubDate>Thu, 28 Oct 2004 07:42:31 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68401.html#68401</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : ljamal: Your attempt did not work,...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68389.html#68389</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=11550">theSCIENTIST</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 28&nbsp;October&nbsp;2004 at 4:34am<br /><br /><strong>ljamal:</strong> Your attempt did not work, I have tested it, also your query syntax was erroring out, it should've been:<br /><br /><table width="99%"><tr><td><pre class="BBcode">strSQL = "select " & strDbTable & "Thread.Thread_ID From " & strDbTable & "Thread WHERE " &_<br />strDbTable & "Thread.Message_date &gt; (select " & strDbTable & "Thread.Message_date where " &_<br />strDbTable & "Thread.Thread_ID =" & lngMessageID & ");"<br /></pre></td></tr></table><br /><br />I'm also trying to fix this with a simple to use patch, will reply when done.]]>
   </description>
   <pubDate>Thu, 28 Oct 2004 04:34:26 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68389.html#68389</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : Try this right after line 147...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68285.html#68285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=9441">ljamal</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 26&nbsp;October&nbsp;2004 at 3:20pm<br /><br />Try this right after line 147 in delete_post.asp<br />It should work, but I haven't tested it. Basically it checks to see if the threads has any posts after the user's post. If there are posts then only an admin or mod can delete the post.<br /><br />Let me know if it works and I'll release it as a MOD or maybe borg will add it to correct the current release.<br /><br /><font color=BLUE><font size="1"><br />' LJAMAL MOD 26 OCT 2004<br />' CORRECTS THE ABILITY FOR USERS TO DELETE POST BY CHANGING URL<br />If lngDelMsgAuthorID = lngLoggedInUserID then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim RSCheck<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RSCheck = Server.CreateObject("ADODB.Recordset")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strSQL = "select " & strDbTable & "Thread.Thread_ID From "& strDbTable & "Thread WHERE " &_<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDbTable &"Thread.Topic_ID in (select "&strDbTable &"Thread.Topic_ID from " & strDbTable & "Thread  where "&_<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDbTable & "Thread.Thread_ID ="  & lngMessageID & ") and "&_<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDbTable &"Thread.Message_date &gt; (select "&strDbTable &"Thread.Message_date from " & strDbTable & "Thread  where "&_<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDbTable & "Thread.Thread_ID ="  & lngMessageID & ");"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RSCheck.Open strSQL, adoCon<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not RSCheck.EOF then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blnDelete = False<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RSCheck.Close<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set RSCheck = Nothing<br />end if<br />' END MOD<br /></font></font><br /><br />This has been updated to correct the flawed code. The code above has been tested and corrects the flaw.<span style="font-size:10px"><br /><br />Edited by ljamal</span>]]>
   </description>
   <pubDate>Tue, 26 Oct 2004 15:20:39 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68285.html#68285</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : For a temp fix you could set edit...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68275.html#68275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1070">MadDog</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 26&nbsp;October&nbsp;2004 at 2:04pm<br /><br />For a temp fix you could set edit and delete permissions to admin only.That would make it so admins could be the only one allowed to edit ordelete posts.]]>
   </description>
   <pubDate>Tue, 26 Oct 2004 14:04:43 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68275.html#68275</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : I am working on it, but as it...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68245.html#68245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 26&nbsp;October&nbsp;2004 at 5:27am<br /><br />I am working on it, but as it will mean allot of work and changing ofcode there will not be a quick fix, so it will not be available for thepresent version.]]>
   </description>
   <pubDate>Tue, 26 Oct 2004 05:27:27 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68245.html#68245</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : But one or more others could do...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68222.html#68222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=18015">Marino2</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 25&nbsp;October&nbsp;2004 at 6:25pm<br /><br /><P>But one or more others could do the same in the future, the problem will exists until&nbsp;it is&nbsp;solved...<BR><BR>Well, for the moment I've forbidden&nbsp;the deletion of posts, except for mods and admins and the trick could not be used anymore.<BR>Hope someone will do a patch for that, thanks in advance.</P><P>Cheers</P>]]>
   </description>
   <pubDate>Mon, 25 Oct 2004 18:25:59 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68222.html#68222</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : Then maybe it&amp;#039;s time to suspend...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68204.html#68204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 25&nbsp;October&nbsp;2004 at 11:01am<br /><br />Then maybe it's time to suspend this persons account to prevent him from doing such things.]]>
   </description>
   <pubDate>Mon, 25 Oct 2004 11:01:33 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68204.html#68204</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : Thank you, because he&amp;#039;s know...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68201.html#68201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=18015">Marino2</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 25&nbsp;October&nbsp;2004 at 9:46am<br /><br /><P>Thank you, because he's know sending MP's with modified links hidden behind pictures or fake links to others members and then they delete their own messages without knowing&nbsp; </P>]]>
   </description>
   <pubDate>Mon, 25 Oct 2004 09:46:56 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68201.html#68201</guid>
  </item> 
  <item>
   <title><![CDATA[Edit -&gt; delete url change BUG : I shall look into the problem. ...]]></title>
   <link>https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68120.html#68120</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 12295<br /><strong>Posted:</strong> 23&nbsp;October&nbsp;2004 at 2:10pm<br /><br />I shall look into the problem.]]>
   </description>
   <pubDate>Sat, 23 Oct 2004 14:10:38 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/edit-delete-url-change-bug_topic12295_post68120.html#68120</guid>
  </item> 
 </channel>
</rss>