- Timestamp:
- Aug 15, 2009, 7:08:18 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e19eb97
- Parents:
- 65b2173
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:59:42)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r712caac rfa4562c 1211 1211 1212 1212 /* bail immeaditly if we don't have to do any work */ 1213 ptr=strchr( in, '.');1214 if (!strchr( in, '/') && !ptr) {1213 ptr=strchr(out, '.'); 1214 if (!strchr(out, '/') && !ptr) { 1215 1215 /* no '/' and no '.' */ 1216 1216 return(out); 1217 1217 } 1218 if (ptr && strchr( in, '@') && (ptr > strchr(in, '@'))) {1218 if (ptr && strchr(out, '@') && (ptr > strchr(out, '@'))) { 1219 1219 /* There's a '.' but it's in the realm */ 1220 1220 return(out); 1221 1221 } 1222 if (!strncasecmp( in, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) {1222 if (!strncasecmp(out, OWL_WEBZEPHYR_PRINCIPAL, strlen(OWL_WEBZEPHYR_PRINCIPAL))) { 1223 1223 return(out); 1224 1224 } 1225 1225 1226 /* remove the realm from ptr, but hold on to it */1226 /* remove the realm from out, but hold on to it */ 1227 1227 realm=strchr(out, '@'); 1228 1228 if (realm) realm[0]='\0';
Note: See TracChangeset
for help on using the changeset viewer.