Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added missing semicolon in AppDelegate / Fixed length check of device unique identifier #13

Merged
merged 2 commits into from Nov 29, 2011
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
View
@@ -47,7 +47,7 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio
if (uuid)
deviceUuid = (NSString *)uuid;
else {
- CFStringRef cfUuid = CFUUIDCreateString(NULL, CFUUIDCreate(NULL))
+ CFStringRef cfUuid = CFUUIDCreateString(NULL, CFUUIDCreate(NULL));
deviceUuid = (NSString *)cfUuid;
CFRelease(cfUuid);
[defaults setObject:deviceUuid forKey:@"deviceUuid"];
@@ -266,7 +266,7 @@ private function _registerDevice($appname, $appversion, $deviceuid, $devicetoken
if(strlen($appname)==0) $this->_triggerError('Application Name must not be blank.', E_USER_ERROR);
else if(strlen($appversion)==0) $this->_triggerError('Application Version must not be blank.', E_USER_ERROR);
- else if(strlen($deviceuid)!=40) $this->_triggerError('Device ID must be 40 characters in length.', E_USER_ERROR);
+ else if(strlen($deviceuid)>40) $this->_triggerError('Device ID may not be more than 40 characters in length.', E_USER_ERROR);
else if(strlen($devicetoken)!=64) $this->_triggerError('Device Token must be 64 characters in length.', E_USER_ERROR);
else if(strlen($devicename)==0) $this->_triggerError('Device Name must not be blank.', E_USER_ERROR);
else if(strlen($devicemodel)==0) $this->_triggerError('Device Model must not be blank.', E_USER_ERROR);