Hi,

we use the webfm module to display a huge list of contracts in our intranet. Using the description metadata field we would like to give a very short summary of the content. I'm now facing the problem, that the summary text in the description field is truncated after an inserted "," (comma).

Any ideas, how to work around?

Thanks in advance for any hints (newbee...).

CommentFileSizeAuthor
#2 webfm.patch1.33 KBbmcmurray

Comments

cbraun’s picture

Status: Active » Closed (fixed)

Oops. Entering "&#044" instead of "," helps. Sorry.

bmcmurray’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new1.33 KB

While entering the HTML entity for a comma will work, my client did not want to do this; so I wrote a small patch which changes the array implode and explode (used to send the metadata back to the module for saving via ajax) character from a comma to a tilde (~) because the tilde is far less used than a comma in metadata descriptions.

Attached is my patch, run it by placing it in your sites/all/modules folder (or wherever your webfm folder resides) and then run: patch -p0 < webfm.patch via the command line.

Hope you find this useful.

Brian

robmilne’s picture

Status: Needs review » Fixed

ver2.5 properly escapes user input data.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.