This module seems to be delimiting quotation marks so that they don't do what they should (for example in anchor tags). This just started happening on an installation that has been stable for months.

I use this module primarily to replace a word with a hyperlinked word.
Hyperlinks are no longer working on new entries because backslashes are being inserted in front of the quotes.

Previous entries work, I've been doing this for months.

For example, a tag like $XXX$ should be replaced by XXX

Instead the quote (") is being replaced by backslash-quote (\"), so that the link is completely destroyed.

For example, the replacement should look like this:

<a href="http://drupal.com">XXX</a>

but is being transformed to this:

<a href=\"http://drupal.com\">XXX</a>

I have tried editing the database directly to make it look like previously entered tags that work. Result: the tag comes up blank.

This looks like a bug since I'm using this the way I always did. Even copied a replacement that works into a test tag - it gets transformed into a non-working replacement.

What gives?

CommentFileSizeAuthor
#1 php.zip16.19 KBdsamuel

Comments

dsamuel’s picture

Assigned: Unassigned » dsamuel
Status: Active » Fixed
StatusFileSize
new16.19 KB

The problem turned out to be the server.

PHP was upgraded, but with different php.ini settings.

The new installation had magic quotes turned on (the previous installation had them turned off).

The solution is to have a php.ini in the public_html folder of your server which sets magic quotes to off. The one I am using is attached in zip format.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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