The form function Webfm.metadata.prototype.submitMeta double encodes input and textarea fields (name and value). This is not handled by webfm_putmeta and causes encoded data being stored in the database which makes processing almost impossible. To fix this webfm_putmeta needs to rawurldecode() the field name and the value.
Attached please find a patch against HEAD which solves the issue.
To fix existing records metadata need to be re-submitted.
| Comment | File | Size | Author |
|---|---|---|---|
| module-webfm-submitMeta_rawurlencode_issue-2.x-dev.patch | 793 bytes | fajo |
Comments
Comment #1
fajo commentedComment #2
nhck commented#849752 by fajo: Fixed Double encoding of meta data not handled by webfm_putmeta().
Thank you for reporting and fixing this bug fajo, I have committed this to CVS and it will be in the next release version. Yeah!