aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-05-18 14:21:57 +1000
committeronefang2020-05-18 14:21:57 +1000
commit8447caba8915dc4ff3f8f12a66f64aa5bc1e72a6 (patch)
tree7bb49d63765e6b28e468e37b39359bfc5482fc0d
parentTODO += 3 (diff)
downloadopensim-SC_OLD-8447caba8915dc4ff3f8f12a66f64aa5bc1e72a6.zip
opensim-SC_OLD-8447caba8915dc4ff3f8f12a66f64aa5bc1e72a6.tar.gz
opensim-SC_OLD-8447caba8915dc4ff3f8f12a66f64aa5bc1e72a6.tar.bz2
opensim-SC_OLD-8447caba8915dc4ff3f8f12a66f64aa5bc1e72a6.tar.xz
Various small cleanups.
-rw-r--r--src/sledjchisl/sledjchisl.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index d238e58..45e5919 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -3089,9 +3089,6 @@ https://owasp.org/www-community/xss-filter-evasion-cheatsheet
3089 3089
3090 3090
3091 3091
3092// Forward declare this here so we can use it in validation functions.
3093//void loginPage(reqData *Rd, char *message);
3094
3095/* Four choices for the token - (https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html) 3092/* Four choices for the token - (https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html)
3096 https://en.wikipedia.org/wiki/Cross-site_request_forgery 3093 https://en.wikipedia.org/wiki/Cross-site_request_forgery
3097 Has some more info. 3094 Has some more info.
@@ -3461,7 +3458,6 @@ static void setToken_n_munchie(reqData *Rd, boolean linky)
3461 int fd = notstdio(xcreate_stdio(file, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, S_IRUSR | S_IWUSR)); 3458 int fd = notstdio(xcreate_stdio(file, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, S_IRUSR | S_IWUSR));
3462 size_t l = strlen(tnm0); 3459 size_t l = strlen(tnm0);
3463 3460
3464
3465 if (s) 3461 if (s)
3466 I("Creating session %s.", file); 3462 I("Creating session %s.", file);
3467 else 3463 else
@@ -3533,11 +3529,9 @@ t("Write shs %s", tnm4);
3533 free(tnm0); 3529 free(tnm0);
3534 free(file); 3530 free(file);
3535 3531
3536
3537 if (linky) 3532 if (linky)
3538 { 3533 {
3539// TODO - Later use libcurl. 3534// TODO - Later use libcurl.
3540
3541 char *first = getStrH(Rd->stuff, "firstName"), *last = getStrH(Rd->stuff, "lastName"); 3535 char *first = getStrH(Rd->stuff, "firstName"), *last = getStrH(Rd->stuff, "lastName");
3542// TODO - should be from Rd.shs->linky-hashish 3536// TODO - should be from Rd.shs->linky-hashish
3543 char *t0 = xstrdup(Rd->lnk->hashish), *content, *command; 3537 char *t0 = xstrdup(Rd->lnk->hashish), *content, *command;
@@ -4874,12 +4868,7 @@ static int voucherValidate(reqData *Rd, inputForm *oF, inputValue *oV)
4874 } 4868 }
4875 4869
4876 if ((0 == ret) && (NULL != voucher)) 4870 if ((0 == ret) && (NULL != voucher))
4877 {
4878// char *t = qurl_encode(voucher, strlen(voucher));
4879// Rd->stuff->putstr(Rd->stuff, "voucher", t);
4880 Rd->stuff->putstr(Rd->stuff, "voucher", voucher); 4871 Rd->stuff->putstr(Rd->stuff, "voucher", voucher);
4881// free(t);
4882 }
4883 4872
4884 return ret; 4873 return ret;
4885} 4874}
@@ -4900,12 +4889,7 @@ static int aboutMeValidate(reqData *Rd, inputForm *oF, inputValue *oV)
4900 } 4889 }
4901 4890
4902 if ((0 == ret) && (NULL != about)) 4891 if ((0 == ret) && (NULL != about))
4903 {
4904// char *t = qurl_encode(about, strlen(about));
4905// Rd->stuff->putstr(Rd->stuff, "aboutMe", t);
4906 Rd->stuff->putstr(Rd->stuff, "aboutMe", about); 4892 Rd->stuff->putstr(Rd->stuff, "aboutMe", about);
4907// free(t);
4908 }
4909 4893
4910 return ret; 4894 return ret;
4911} 4895}