|
|
| version 1.2, 2001/07/31 07:47:08 | version 1.3, 2001/07/31 07:58:47 |
|---|---|
| Line 101 public: | Line 101 public: |
| it's already UNTAINT_TIMES_BIGGER | it's already UNTAINT_TIMES_BIGGER |
| */ | */ |
| // ' -> '' | |
| unsigned int result=length; | unsigned int result=length; |
| while(length--) { | while(length--) { |
| if(*from=='\'') | switch(*from) { |
| case '\'': // "'" -> "''" | |
| *to++='\''; | *to++='\''; |
| break; | |
| case '\\': // "\" -> "\\" | |
| *to++='\''; | |
| break; | |
| } | |
| *to++=*from++; | *to++=*from++; |
| } | } |
| return result; | return result; |