Skip to content

Commit

Permalink
usage of str_ireplace instead of multiple str_replace(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Sánchez authored and mikeho committed Oct 15, 2010
1 parent 24b042b commit ea90681
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/qcodo/_core/framework/QErrorHandler.class.php
Expand Up @@ -126,9 +126,7 @@ public static function PrepDataForScript($strData) {
$strData = str_replace("\n", "\\n", $strData);
$strData = str_replace("\r", "\\r", $strData);
$strData = str_replace("\"", """, $strData);
$strData = str_replace("</script>", "&lt/script&gt", $strData);
$strData = str_replace("</Script>", "&lt/script&gt", $strData);
$strData = str_replace("</SCRIPT>", "&lt/script&gt", $strData);
$strData = str_ireplace("</script>", "&lt/script&gt", $strData);
return $strData;
}

Expand Down

0 comments on commit ea90681

Please sign in to comment.