Permalink
Browse files

Updating docblock for Sanitize::stripScripts()

  • Loading branch information...
1 parent 6c8b7fd commit ccc3b9dbb4cfe0d830d9a2b4e6fdd01c8f6df10a @ADmad ADmad committed Jun 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Sanitize.php
@@ -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);

0 comments on commit ccc3b9d

Please sign in to comment.