https://bugzilla.wikimedia.org/show_bug.cgi?id=21926
Summary: Single quote in PAGENAME breaks inline queries of n-ary properties Product: MediaWiki extensions Version: any Platform: All URL: http://sandbox.semantic- mediawiki.org/index.php?oldid=19162 OS/Version: All Status: NEW Severity: normal Priority: Normal Component: Semantic MediaWiki AssignedTo: mar...@semantic-mediawiki.org ReportedBy: je...@netwood.net When making an inline query of a n-ary property whose first part is of type Page, if the property value contains a single quote ('), then the query will break if the magic word {{PAGENAME}} is used, but work if the page name is pasted in directly. The attached URL points to an example of this on the sandbox. The first query uses the pasted page name (and works), the second uses {{PAGENAME}} (and fails), and the third uses a non-n-ary property with {{PAGENAME}} (and works). This appears to be a problem with escaping, somewhere in the n-ary code. There is a workaround, but it requires the StringFunctions extension (or some other way to do urldecoding). If you use {{#urldecode:{{PAGENAMEE}}}}, the query works. I'm not sure why. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l