https://bugzilla.wikimedia.org/show_bug.cgi?id=23946
Matt Voysey <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]. | |com --- Comment #1 from Matt Voysey <[email protected]> 2011-04-07 16:01:29 UTC --- The problem is not limited to property values. Valid MediaWiki article names containing quotes (such as "Weird Al" Yankovic) also create invalid JSON output: { "label" : ""Weird Al" Yankovic", "uri" : "http://localhost/mediawiki/index.php?title=""Weird Al" Yankovic", ... } I fixed this particular case by hacking SMW_QP_JSONlink.php to do a str_replace: valuestack[] = '"uri" : "' . $wgServer . $wgScriptPath . '/index.php?title=' . str_replace("\"", "\\\"", $prefixedtext) . '"'; As a secondary issue: Notice also that the "label" is getting htmlescaped, which is probably not what is actually wanted in JSON output? Changing this now though would break existing users, so I guess we're stuck with that one? -- 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
