diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-23 03:46:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-23 03:46:51 +0000 |
commit | 735926877bb8333a9e862657ea89001bea376b9f (patch) | |
tree | 158b00d243790e09d562fe94647cd9460e669cf9 /source3/lib | |
parent | 8757254f39ab75c93e9917a6bdf99475c6a024d7 (diff) | |
download | samba-735926877bb8333a9e862657ea89001bea376b9f.tar.gz samba-735926877bb8333a9e862657ea89001bea376b9f.tar.bz2 samba-735926877bb8333a9e862657ea89001bea376b9f.zip |
replace ' with _ as well
(This used to be commit e93491953a2555401a372de74ac2aee0cc44cb88)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_str.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index dad0e85477..5935533cee 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -998,7 +998,7 @@ enough room! This routine looks for pattern in s and replaces it with insert. It may do multiple replacements. -any of " ; or ` in the insert string are replaced with _ +any of " ; ' or ` in the insert string are replaced with _ ****************************************************************************/ void string_sub(char *s,const char *pattern,const char *insert) { @@ -1019,6 +1019,7 @@ void string_sub(char *s,const char *pattern,const char *insert) switch (insert[i]) { case '`': case '"': + case '\'': case ';': p[i] = '_'; break; |