From: Carsten K. <car...@ma...> - 2001-12-04 22:32:35
|
Today I discovered and fixed a HUGE bug in the 1.2 branch, which I inadvertently caused on December 2 and 3. :-( Everyone who downloaded from the 1.2 branch CVS on or after December 2 should download the fixed version of stdlib.php from the CVS AS SOON AS POSSIBLE. ********************************************************** The bug was created when I added the split_pagename function (and the optional autosplit wikiwords). The problem occurs when clicking on any "EditPage". After saving the page, the new data would be incorrectly saved with a space in the page name. So, if you were editing "TestPage" a NEW page would be added called "Test%20Page". If you DID NOT download PhpWiki 1.2 on or after Dec 2. then you will not be affected. If you are not sure, there is a way to determine whether your data has been affected by this bug: 1. Open /lib/stdlib.php. search for "split_pagename". 2. If you find this function in your stdlib file then you are probably affected. To determine the extent of the damage: 1. Perform a ZIP dump of your phpwiki database 2. Open the ZIP file, and look for duplicate pages, ones without %20 in the name and the same page name again with %20. Unfortunately one cannot do a title search for " " or %20. If you do have duplicate pages, the %20 version will be the most recent version. To fix the affected pages: 1. Download the corrected stdlib.php from the CVS. 2. Edit the affected page(s) (e.g. Test%20Page) 3. Copy all the text 4. Edit the correct page (e.g. TestPage) 5. Paste in all the text 6. Delete the bugged page (e.g. Test%20Page) 7. Repeat for all affected pages. I am sorry for any problems this has caused. Please contact me if this bug caused you problems, I will do my best to help fix it. Carsten Klapp car...@ma... |