Skip to content

Commit

Permalink
Updating docblock for Sanitize::stripScripts()
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 4, 2011
1 parent 6c8b7fd commit ccc3b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Sanitize.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static function stripImages($str) {
* Strips scripts and stylesheets from output
*
* @param string $str String to sanitize
* @return string String with <script>, <style>, <link> elements removed.
* @return string String with <script>, <style>, <link>, <img> elements removed.
*/
public static function stripScripts($str) {
return preg_replace('/(<link[^>]+rel="[^"]*stylesheet"[^>]*>|<img[^>]*>|style="[^"]*")|<script[^>]*>.*?<\/script>|<style[^>]*>.*?<\/style>|<!--.*?-->/is', '', $str);
Expand Down

0 comments on commit ccc3b9d

Please sign in to comment.