https://bugzilla.wikimedia.org/show_bug.cgi?id=21337

           Summary: In-line query fails for page names/properties with '&'
           Product: MediaWiki extensions
           Version: any
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]


On my wiki I have pages 'related' to each other so that they appear
automatically in an 'Other Pages' section.  The in-line query is quite simple
and it works for all my pages with one exception. The page name has a '&'
character in it and the in-line query fails to find the pages marked with the
right smw property.  

To test I moved the page with the in-line query to remove the '&' and changing
the property on a target page and it appeared. In another test, I changed the
property on the target page, it also has a '&' in the title, to relate it to
another page without the '&' character in the title and it worked as expected.  

The details:

In-line query:
{{#ask:[[Relatedpage::{{PAGENAME}}]] [[:+]]
|format=ul
|default=::''No related pages at this time''
}}

I'm running:
MW 1.15
SMW 1.4.3
MySQL 5.0.77 (although Special:Version reports 5.0.45)
PHP 5.2.5
CentOS Linux 5.4


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to