Donate Share

Simple PHP Blog

Tracker: Bugs

5 serious bugs,delete comments - ID: 1881770
Last Update: Comment added ( nobody )

When I delete one comment,the operation delete all comments in a blog
entry,I tested on my upgraded blog and newly installed blog,all the same
problem.

server:freebsd7, apache2.2.8, php5.2.5, SimplePHPBlog 0.5.1

the delete link is like this:
http://baby.org/comment_delete_cgi.php?y=08&m=01&entry=entry080129-191640&c
omment=comment080129-193642.txt


and when the anonymous user post a comment,it's not shown at the recent
commets area


Nobody/Anonymous ( nobody ) - 2008-01-29 12:15

5

Open

None

Nobody/Anonymous

Comments

Major Bug

Public


Comments ( 8 )




Date: 2009-09-26 01:31
Sender: nobody

fNYELe <a href="http://eakgqerqrxml.com/">eakgqerqrxml</a>,
[url=http://rudmfdtplshn.com/]rudmfdtplshn[/url],
[link=http://upcbntkybxbm.com/]upcbntkybxbm[/link],
http://nlxbeobgtgcs.com/


Date: 2009-08-22 18:58
Sender: nobody

<a href="http://50eee5.com">bd1045</a> |
[url=http://8d4d7e.com]27353a[/url] | [link=http://c46c28.com]33e68b[/link]
| http://c4452d.com | 2fbb4f | [http://57d99e.com 1d294b]


Date: 2009-06-18 07:16
Sender: nobody

<a href="<http://drugss009.com/s342-cleocin.html>">buy cleocin online</a>


Date: 2009-06-05 14:22
Sender: nobody

<a href="<http://groups.google.com/group/buy-best-generic-valium>">buy
valium</a>


Date: 2009-03-17 12:50
Sender: nobody

Solution is on:

http://sourceforge.net/tracker/index.php?func=detail&aid=1812181&group_id=106696&atid=645297


Date: 2009-03-17 12:29
Sender: nobody

Solution is on:

http://sourceforge.net/tracker/index.php?func=detail&aid=1812181&group_id=106696&atid=645297


Date: 2008-03-05 19:08
Sender: nobody

Logged In: NO

The problem appears to be in scripts/sb_comments.php in the
delete_comment() function. Specifically, there are two statements:
$pos = strrpos( $dirpath, '/' );
in the file - the second of which has the effect (intentional or
otherwise) of backing up out of the comments directory -- which can lead
the function to return 0 files (as it it not recursively looking through
the comments folder) and subsequently delete all the comments.

Simply commenting out that second statement noted above seems to have done
the trick for me.

HTH someone.


Date: 2008-03-04 14:54
Sender: nobody

Logged In: NO

I can confrim this bug also - Linux/Apache/Php5/SimplePhpBlog 0.5.1

Any projected timeframe for resolution?


Log in to comment.




Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.