Changeset 3780060 for wp-fastest-cache/trunk/wpFastestCache.php
- Timestamp:
- 11/02/2026 02:48:14 PM (3 weeks ago)
- File:
-
- 1 edited
-
wp-fastest-cache/trunk/wpFastestCache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-fastest-cache/trunk/wpFastestCache.php
r3779495 r3780060 1631 1631 1632 1632 if(preg_match("/https?:\/\/[^\/]+\/(.+)/", $permalink, $out)){ 1633 if(preg_match("/\.{2,}/", $out[1])){ 1634 // to prevent Directory Traversal Attack 1635 return; 1636 } 1637 1633 1638 $path = $this->getWpContentDir("/cache/all/").$out[1]; 1634 1639 $mobile_path = $this->getWpContentDir("/cache/wpfc-mobile-cache/").$out[1]; … … 1722 1727 1723 1728 if(preg_match("/https?:\/\/[^\/]+\/(.+)/", $permalink, $out)){ 1729 if(preg_match("/\.{2,}/", $out[1])){ 1730 // to prevent Directory Traversal Attack 1731 continue; 1732 } 1733 1724 1734 $path = $this->getWpContentDir("/cache/all/").$out[1]; 1725 1735 $mobile_path = $this->getWpContentDir("/cache/wpfc-mobile-cache/").$out[1];
Note:
See TracChangeset
for help on using the changeset viewer.