projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e58dbe
)
Strip embedded LF's and CR's
author
aland
<aland>
Mon, 18 Jun 2007 12:13:20 +0000
(12:13 +0000)
committer
aland
<aland>
Mon, 18 Jun 2007 12:13:20 +0000
(12:13 +0000)
src/modules/rlm_exec/rlm_exec.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_exec/rlm_exec.c
b/src/modules/rlm_exec/rlm_exec.c
index
adfecde
..
9cc02fb
100644
(file)
--- a/
src/modules/rlm_exec/rlm_exec.c
+++ b/
src/modules/rlm_exec/rlm_exec.c
@@
-121,6
+121,7
@@
static int exec_xlat(void *instance, REQUEST *request,
int result;
rlm_exec_t *inst = instance;
VALUE_PAIR **input_pairs;
+ char *p;
input_pairs = decode_string(request, inst->input);
if (!input_pairs) {
@@
-142,6
+143,10
@@
static int exec_xlat(void *instance, REQUEST *request,
return 0;
}
+ for (p = out; *p != '\0'; p++) {
+ if (*p < ' ') *p = ' ';
+ }
+
return strlen(out);
}