summaryrefslogtreecommitdiff
path: root/vxs.inc
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-11 13:10:15 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-01-04 05:10:03 -0800
commit8a3edca7ce6c05c68923832e2f5e5eac46975fd0 (patch)
treecc7204d00defb633f7bb8ae4d70b0a9eeb1b0b83 /vxs.inc
parente1c774b63b5d338bcd31ca90bfd101f387e4fb43 (diff)
downloadperl-8a3edca7ce6c05c68923832e2f5e5eac46975fd0.tar.gz
[rt.cpan.org #88495] bad string comparison in version->qv
qv is affected, too. A package called "ver" inheriting from version should be able to create "ver" objects via ->qv.
Diffstat (limited to 'vxs.inc')
-rw-r--r--vxs.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vxs.inc b/vxs.inc
index 56b8902287..b239fadf61 100644
--- a/vxs.inc
+++ b/vxs.inc
@@ -436,8 +436,8 @@ XS(XS_version_qv)
} else {
rv = sv_2mortal(new_version(ver));
}
- if ( items == 2
- && strnNE(classname,"version", len) ) { /* inherited new() */
+ if ( items == 2 && (len != 7
+ || strnNE(classname,"version", len)) ) { /* inherited new() */
sv_bless(rv, gv_stashpvn(classname, len, GV_ADD | flags));
}
PUSHs(rv);