Commit 6ac36a610825f51ba864bc30cb564d587b4ec611
1 parent
7e93e247
Merged in from STABLE trunk...
KTS-2215 "When editing the dashboard welcome message the ktcore/en/welcome.html file is corrupted" Fixed. String repleaced \r and \n chars. Committed By: Kevin Fourie Reviewed By: Jalaloedien Abrahams git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.4.5-Release-Branch@7741 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
1 deletions
lib/util/sanitize.inc
| ... | ... | @@ -67,7 +67,9 @@ function sanitizeForSQL($string, $min='', $max='') { |
| 67 | 67 | |
| 68 | 68 | function sanitizeForSQLtoHTML($string, $min='', $max='') { |
| 69 | 69 | |
| 70 | - return stripslashes(trim($string)); | |
| 70 | + $string = str_ireplace("\r", "", $string); | |
| 71 | + $string = str_ireplace("\n", "", $string); | |
| 72 | + return stripslashes(trim($string)); | |
| 71 | 73 | |
| 72 | 74 | } |
| 73 | 75 | ... | ... |