Commit 5258bb0f58afbb1e18e09816f7f4a70eec8541ff

Authored by Conrad Vermeulen
1 parent a8982662

KTS-2178

"cross site scripting"
Implemented.

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6913 c91229c3-7414-0410-bfa2-8a42b809f60b
thirdparty/Smarty/plugins/modifier.sanitize_input.php 0 → 100644
  1 +<?php
  2 +
  3 +function smarty_modifier_sanitize_input($string, $esc_type = 'html', $charset='UTF-8')
  4 +{
  5 + $string = mb_ereg_replace("'","&#039;", $string);
  6 + $string = mb_ereg_replace('"',"&quot;", $string);
  7 + $string = mb_ereg_replace('<',"&lt;", $string);
  8 + $string = mb_ereg_replace('>',"&gt;", $string);
  9 + return $string;
  10 +}
  11 +
  12 +
  13 +?>
... ...