- StrBufPlain(ShorterUrlStr, CKEY(*pCUrl));
- if (LookupUrl(ShorterUrlStr))
- {
- StrBufAppendBufPlain(Shadow, HKEY("<a href=\""), 0);
- StrBufAppendBuf(Shadow, ShorterUrlStr, 0);
- StrBufAppendBufPlain(Shadow, HKEY("\">"), 0);
- StrBufAppendBuf(Shadow, ShorterUrlStr, 0);
- StrBufAppendBufPlain(Shadow, HKEY("["), 0);
- StrBufAppendBufPlain(Shadow, pCUrl->Key, pCUrl->len, 0);
- StrBufAppendBufPlain(Shadow, HKEY("]</a>"), 0);
- }
- else
- {
- StrBufAppendBufPlain(Shadow, HKEY("<a href=\""), 0);
- StrBufAppendBufPlain(Shadow, pCUrl->Key, pCUrl->len, 0);
- StrBufAppendBufPlain(Shadow, HKEY("\">"), 0);
- StrBufAppendBufPlain(Shadow, pCUrl->Key, pCUrl->len, 0);
- StrBufAppendBufPlain(Shadow, HKEY("</a>"), 0);
- }
- pch = pCUrl->Key + pCUrl->len + 1;
-
+ StrBufPlain(ShorterUrlStr, CKEY(*pCUrl));
+ if (LookupUrl(ShorterUrlStr))
+ {
+ StrBufAppendBufPlain(Shadow, HKEY("<a href=\""), 0);
+ StrBufAppendBuf(Shadow, ShorterUrlStr, 0);
+ StrBufAppendBufPlain(Shadow, HKEY("\">"), 0);
+ StrBufAppendBuf(Shadow, ShorterUrlStr, 0);
+ StrBufAppendBufPlain(Shadow, HKEY("["), 0);
+ StrBufAppendBufPlain(Shadow, pCUrl->Key, pCUrl->len, 0);
+ StrBufAppendBufPlain(Shadow, HKEY("]</a>"), 0);