From: <may...@us...> - 2006-08-06 16:20:53
|
Revision: 16654 Author: mayuan2006 Date: 2006-08-06 09:20:39 -0700 (Sun, 06 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16654&view=rev Log Message: ----------- can show the Photo info sucessfully! committed by MaYuan<may...@gm...> Modified Paths: -------------- branches/soc-2006-msnp13/src/protocols/msn/msn.c branches/soc-2006-msnp13/src/protocols/msn/msn.h Modified: branches/soc-2006-msnp13/src/protocols/msn/msn.c =================================================================== --- branches/soc-2006-msnp13/src/protocols/msn/msn.c 2006-08-06 15:16:46 UTC (rev 16653) +++ branches/soc-2006-msnp13/src/protocols/msn/msn.c 2006-08-06 16:20:39 UTC (rev 16654) @@ -1390,12 +1390,10 @@ { char *p, *q; - if ((p = strstr(url_text, " contactparams:photopreauthurl=\"")) != NULL) - { - p += strlen(" contactparams:photopreauthurl=\""); + if ((p = strstr(url_text, PHOTO_URL)) != NULL){ + p += strlen(PHOTO_URL); } - - if (p && (strncmp(p, "http://", 8) == 0) && ((q = strchr(p, '"')) != NULL)) + if (p && (strncmp(p, "http://",strlen("http://")) == 0) && ((q = strchr(p, '"')) != NULL)) return g_strndup(p, q - p); return NULL; @@ -1809,6 +1807,7 @@ #if PHOTO_SUPPORT /* Find the URL to the photo; must be before the marshalling [Bug 994207] */ photo_url_text = msn_get_photo_url(url_text); + gaim_debug_info("Ma Yuan","photo url:{%s}\n",photo_url_text); /* Marshall the existing state */ info2_data = g_malloc0(sizeof(MsnGetInfoStepTwoData)); Modified: branches/soc-2006-msnp13/src/protocols/msn/msn.h =================================================================== --- branches/soc-2006-msnp13/src/protocols/msn/msn.h 2006-08-06 15:16:46 UTC (rev 16653) +++ branches/soc-2006-msnp13/src/protocols/msn/msn.h 2006-08-06 16:20:39 UTC (rev 16654) @@ -79,6 +79,7 @@ #define PASSPORT_URL "http://lc1.law13.hotmail.passport.com/cgi-bin/dologin?login=" /*#define PROFILE_URL "http://spaces.msn.com/profile.aspx?mem="*/ #define PROFILE_URL "http://spaces.live.com/profile.aspx?mem=" +#define PHOTO_URL " contactparams:photopreauthurl=\"" #define USEROPT_HOTMAIL 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |