Last modified: 2014-02-12 23:38:28 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 T46104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44104 - SF query string not passing values containing apostrophes properly
SF query string not passing values containing apostrophes properly
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-18 14:14 UTC by Neill Mitchell
Modified: 2014-02-12 23:38 UTC (History)
1 user (show)

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


Attachments

Description Neill Mitchell 2013-01-18 14:14:49 UTC
Hi.

I'm running SMW bundle 1.18 on ME 1.19.3.

I have the following:

{{#formlink:form=Subsection Form|link text=Add a Subsection|link type=button|query string=Subsection[Parent]={{{Page Title|}}}}}

If Page Title contains an apostrophe, the value is truncated at the apostrophe.

Example. If Page Title is "What's New" the field in the form just contains "What"

I remember this problem a while back with SMW 1.5 and SF 2.0 and it was fixed then. So perhaps this is a regression.

Any ideas for a fix or workaround?

Thanks.
Comment 1 Neill Mitchell 2013-01-18 15:02:59 UTC
Fix to this of course would be to urlencode the value when passing it and then urldecoding it.
Comment 2 Neill Mitchell 2013-01-19 16:27:20 UTC
Hmm. It also cannot cope with the & character. So you can pass field values such as "Hours & minutes". Ampersands are even more common than apostrophes, so this is becoming quite a painful limitation.
Comment 3 Neill Mitchell 2013-01-21 09:59:00 UTC
Ditto for + char. So you cannot pass field values such as "Age 21+".
Comment 4 Gary Rodgers 2013-01-22 10:55:55 UTC
I am getting this too. I have a template that defines a book. In this template I have a form link to allow people to submit a review. The formlink is shown below.

{{#formlink:form=Book Entry|link text=Add a Book|link
type=button|query string=Book[Title]={{{Page Title|}}}}}

If the book's Page Title contains ' & + £ etc then the Book[Title] field is chopped off at the affected character.

So books with names like the following do not work
Get an A+ in Math
Pride & Prejudice
Schindler's List

These characters are very common, so this should work ideally.

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


Navigation
Links