In link_field()'s 'presave', _link_process() assumes the 'attributes' has been unserialized on 'load'. However, this is now always true.

Attached a patch which adds a check.

CommentFileSizeAuthor
link-dont_assume_unserialized.patch706 bytesAmrMostafa

Comments

ellen.davis’s picture

I have found the same issue, but in a different part of the code. The _link_sanitize function also assume attributes has been unserialized. This is true when editing, but not when viewing. The same code from this patch needs to be included before the Add attributes section in _link_sanitize.

Testing done using drupal 6.10 and link-DRUPAL-6--1 from cvs.

digi24’s picture

I can confirm the need for the patch in the first posting, I do not know about #1, but it does not seem to do any harm for me.

damienmckenna’s picture

Version: master » 6.x-2.x-dev
Issue summary: View changes
Status: Needs review » Closed (won't fix)

The Drupal 6 version of this module is no longer supported.