I am not sure why but modules like panels and ctools set a version in their .info file to something that looks like:

CTOOLS_MODULE_VERSION

I suggest a basic check is done to make sure that the version that is in $info['version'] follows at least the basics of the drupal format.

CommentFileSizeAuthor
#1 assumes_the_version-2429079-1.patch531 bytesgeekygnr

Comments

geekygnr’s picture

Status: Needs work » Needs review
StatusFileSize
new531 bytes

Here is a patch that solved my problem for ctools and panels.

nevergone’s picture

Status: Needs review » Reviewed & tested by the community

Tested and works well!

fgm’s picture

LGTM too. Any reason not to merge it ?

darren oh’s picture

Ctools and Panels have fixed their version strings. We cannot assume that all projects are from Drupal contrib, so we need to trust version strings when they exist.