Menu

ZBar scanner re-directing to spam site

Scott
2013-07-17
2013-08-01
  • Scott

    Scott - 2013-07-17

    I've had an app in the Apple store for several years that uses the ZBar SDK to scan QR codes. It's worked fine over the past couple years, but lately most QR codes I scan now with the app get redirected to a site called pureromance.com. What could possibly be causing this now? Very concerned!

     

    Last edit: Scott 2013-07-20
  • QRU

    QRU - 2013-08-01

    Your problem is very odd for a developer, after all the only thing ZBar will do for you is to decode the image into a string and what happens next is really up to your app. I have the new SDK and I do not have the problem. Anyway, if what you are saying is true you probably would want to put a breakpoint to examine symbol.data (NSString *) at the delegate method below (If it is always pureromance,com.as what you say, you need to download a fresh copy of the SDK and recompile again otherwise it is probably a bug in your app):

    - (void) imagePickerController: (UIImagePickerController *) picker
    

    didFinishPickingMediaWithInfo: (NSDictionary *) info {
    //sound alert first
    [self Beep];

    if ([QR_Origin isEqualToString:@"Scanned"])
         {
    
        id<NSFastEnumeration> results = [info objectForKey: ZBarReaderControllerResults];
    
       image = [info objectForKey:UIImagePickerControllerOriginalImage];
    
        ZBarSymbol *symbol = nil;
        for(symbol in results)
            // EXAMPLE: just grab the first barcode
            break;
            barcode_type = symbol.typeName;    
        [self process_result:symbol.data];
    
     

Log in to post a comment.