Last modified: 2006-05-24 19:05:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8061, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6061 - apostrophe and buttons
apostrophe and buttons
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-23 21:18 UTC by Pablo Saratxaga
Modified: 2006-05-24 19:05 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pablo Saratxaga 2006-05-23 21:18:44 UTC
When an apostrophe appears in a text for a button, everything after the
apostrophe is lost.

For example, mediawiki:savefile in Walloon is "Schaper l' fitchî" (note the
apostrophe).
That text is displayed in a button when uploading a file with warnings.

The html of the rendered page is as follow:

...  <input tabindex='2' type='submit' name='wpUpload' value='Schaper l' fitchî'
/> ...

Here you see what the problem is, the text in the value= field is enclosed in
single quotes, and the the single quote in the text itself isn't escaped.
As a result, the button only shows "Schaper l" instead of "Schaper l' fitchî".

All text that is to be displayed in the rendered page  that way should be
escaped for apostrophes.
Comment 1 Niklas Laxström 2006-05-24 19:05:54 UTC
Fixed in trunk in r14365.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links