https://bugzilla.wikimedia.org/show_bug.cgi?id=21615
Summary: retrievedfrom text: also URI encode "(" and ")"
Product: MediaWiki
Version: 1.16-svn
Platform: All
URL: http://en.wikipedia.org/wiki/Roselle_(plant)
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
In Skin.php, at
/** @return string Retrievied from HTML text */
function printSource() {
$url = htmlspecialchars( $this->mTitle->getFullURL() );
return wfMsg( 'retrievedfrom', '<a
href="'.$url.'">'.$url.'</a>' );
you need to make sure "(" and ")" are presented as %28 and %29,
because e.g., often users clicking on
http://en.wikipedia.org/wiki/Roselle_(plant)
will not be able to get to the link, as only
http://en.wikipedia.org/wiki/Roselle_%28plant%29
will work, when having the link sent to them by a friend and clicking
on it in their (mainstream MicroSoft) mail program (Outlook?).
http://en.wikipedia.org/wiki/Percent-encoding is over my head. All I know is
that
when I send my friends ( and ) in URLs via plain text (not HTML) email,
they can't read the pages via clicking unless I manually change them to %'s.
Note, to see the above function's output, be sure stylesheets are
disabled in your browser, or use a text browser.
Anyway, you already encode CJK chars., so ugly is OK. Might as well encode
( and ), as the goal of the game is a guaranteed click (and not saying if
their client program is correct or not.)
See also bug 10206.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l