[dokuwiki] Re: Bad case of spamming + changelog code

  • From: Ben Coburn <btcoburn@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 16 Oct 2006 22:47:32 -0700


On Oct 16, 2006, at 6:28 PM, Andreas Gohr wrote:

It can happen, that there is no changelog entry for an old revision.
I'm not sure how this happens but for some spams there was no old
revision available. The file in the attic got created but there was no
matching entry in the attic (or get_revisions did not find it). We need
to investigate this.


This is not clear. Which part are you saying is missing?

The changelog list usually has one extra revision because the current version is not in the attic. For newly created pages "getRevisions($id, 0, 1)" will return an empty array because it skips the current revision (by default).

New pages have nothing to revert to, so the plugin should call "saveWikiText" with an empty string to correctly delete new spam pages.

The second problem occured when I used my script to revert many files
at once. For some reason the global changelog got truncated. Again I
have no idea what caused this.


Check "$conf['recent_days']" under "Advanced Settings".... If this is not user error, then maybe something took more than 3 seconds and a lock was ignored?


Regards, Ben Coburn


------------------- silicodon.net -------------------

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: