Closed GoogleCodeExporter closed 9 years ago
When I load
http://localhost:3030/?bcid=qrcode&text=test&scale=3&rotate=C&parsefnc&alttext=a
lt_text I get an error. I'm not exactly sure but I think the strict equality
operator is what's causing the problem.
Original comment by m...@chrisaiv.com
on 16 Jul 2012 at 7:34
In order to get things to work, I need to typecast certain objects.
Specifically the arrays.
if( typeof( this.stk[this.ptr-1] == Array ) ){
if ( Array(this.stk[this.ptr-1]).length != Number) console.log("length: invalid: " +
String(BWIPJS.pstype(Array(this.stk[this.ptr-1]))) );
}
this.stk[this.ptr-1]=Array(this.stk[this.ptr-1]).length;
Original comment by m...@chrisaiv.com
on 16 Jul 2012 at 7:45
This issue has been resolved with the 0.4 release. The problem was actually in
the node-bwipjs module, which allowed nonsense URLs such as /favicon.ico to be
passed to the encoders. The new node-bwipjs fixes this issue by performing a
series of sanity checks on the URL before proceeding.
Original comment by mwar...@metafloor.com
on 26 Feb 2013 at 9:14
Original issue reported on code.google.com by
pdgw...@gmail.com
on 18 May 2012 at 8:12