00995: Ampersands in links create wrong pages

Summary: Ampersands in links create wrong pages
Created: 2007-11-27 10:00
Status: Awaiting feedback
Category: Bug
From: Jason
Priority: 51
Version: 2.1.27
OS: Windows 2K Server / IIS / PHP 5.1.4

Description: When creating a page in the PmWiki with the ampersand character (&), the title will not properly display the ampersand after the page is saved and viewed.


Testing & Documentation Procedures?

Once the page is created and saved, the link looks fine. Click the link to go to the Testing & Documentation page however, the title on the page will be Testing AMP Documentation Procedures.

I am using the CIS-Dept. Lean Skin

- jason [period] george [snail] valero [period] com

Hi. It appears that ampersands are stored as & in the source page, but the Markup Engine automatically converts them to &. If we change this, it may have many side-effects on the current core and on many recipes.

Alternatively, we could strip those entities in the LinkPage() function, but there are many such entities, and doing so might break many existing wikis. I wonder if something could be done to fix this bug.

There is one workaround: use [[LaurelHardy| Laurel & Hardy ]]. --Petko July 09, 2009, at 03:55 PM