Changeset 2060793
- Timestamp:
- 04/01/2019 07:01:33 AM (7 years ago)
- Location:
- dozwpsecure
- Files:
-
- 2 edited
-
tags/1.2/DozWPSecure.php (modified) (2 diffs)
-
trunk/DozWPSecure.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dozwpsecure/tags/1.2/DozWPSecure.php
r2060729 r2060793 11 11 Requires at least: 4.4 12 12 Tested up to: 5.1.1 13 Stable tag: 1. 013 Stable tag: 1.2 14 14 Version: 1.2 15 15 License: GPLv2 or later … … 346 346 //DozWPSecure_Basic_chk_RemoveHTMLCommentTags 347 347 if(isset($DozWPSecure_options['DozWPSecure_Basic_chk_RemoveHTMLCommentTags'])){ 348 $text = preg_replace('/(<!-- (.*?)-->)/i','',$text);348 $text = preg_replace('/(<!--[\w\d\s<\/>\"\=\-\#]+-->)|(<!--(.*?)-->)/i','',$text); 349 349 } 350 350 //DozWPSecure_Basic_chk_TrimHTMLContent 351 351 if(isset($DozWPSecure_options['DozWPSecure_Basic_chk_TrimHTMLContent'])){ 352 $text = preg_replace('/\s{2,}/', ' ', $text);352 $text = preg_replace('/\s{2,}/', "\n", $text); 353 353 $text = preg_replace('/> </', '><', $text); 354 $text = preg_replace( "/[\t]+/", '', $text);354 $text = preg_replace('/[\t]+/', '', $text); 355 355 $text = preg_replace('/[\r\n]+/', "\n", $text); 356 356 } -
dozwpsecure/trunk/DozWPSecure.php
r2060729 r2060793 11 11 Requires at least: 4.4 12 12 Tested up to: 5.1.1 13 Stable tag: 1. 013 Stable tag: 1.2 14 14 Version: 1.2 15 15 License: GPLv2 or later … … 346 346 //DozWPSecure_Basic_chk_RemoveHTMLCommentTags 347 347 if(isset($DozWPSecure_options['DozWPSecure_Basic_chk_RemoveHTMLCommentTags'])){ 348 $text = preg_replace('/(<!-- (.*?)-->)/i','',$text);348 $text = preg_replace('/(<!--[\w\d\s<\/>\"\=\-\#]+-->)|(<!--(.*?)-->)/i','',$text); 349 349 } 350 350 //DozWPSecure_Basic_chk_TrimHTMLContent 351 351 if(isset($DozWPSecure_options['DozWPSecure_Basic_chk_TrimHTMLContent'])){ 352 $text = preg_replace('/\s{2,}/', ' ', $text);352 $text = preg_replace('/\s{2,}/', "\n", $text); 353 353 $text = preg_replace('/> </', '><', $text); 354 $text = preg_replace( "/[\t]+/", '', $text);354 $text = preg_replace('/[\t]+/', '', $text); 355 355 $text = preg_replace('/[\r\n]+/', "\n", $text); 356 356 }
Note: See TracChangeset
for help on using the changeset viewer.