Changeset 3389291
- Timestamp:
- 11/04/2025 02:40:28 AM (6 weeks ago)
- Location:
- fast-velocity-minify/trunk
- Files:
-
- 3 edited
-
fvm.php (modified) (1 diff)
-
inc/common.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fast-velocity-minify/trunk/fvm.php
r3383667 r3389291 4 4 * Plugin URI: https://fastvelocity.com 5 5 * Description: Improve your speed score on GTmetrix, Pingdom Tools and Google PageSpeed Insights by merging and minifying CSS and JavaScript files into groups, compressing HTML and other speed optimizations. 6 * Version: 3.5. 36 * Version: 3.5.4 7 7 * Author: Raul Peixoto 8 8 * Author URI: https://fastvelocity.com -
fast-velocity-minify/trunk/inc/common.php
r3383667 r3389291 2405 2405 } 2406 2406 2407 # Block internal/private IP ranges to prevent SSRF 2408 $ip = gethostbyname($parsed['host']); 2409 if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) === false) { 2410 return array('error' => 'Access to private/internal IPs is not allowed'); 2411 } 2412 2413 # get domain 2407 # get domain early to determine if this is a local or external resource 2414 2408 global $fvm_urls; 2415 2416 # check if we can open the file locally first 2417 if (stripos($url, $fvm_urls['wp_domain']) !== false && defined('ABSPATH') && !empty('ABSPATH')) { 2409 $is_local_domain = false; 2410 if (isset($fvm_urls['wp_domain']) && !empty($fvm_urls['wp_domain'])) { 2411 $is_local_domain = (stripos($url, $fvm_urls['wp_domain']) !== false); 2412 } 2413 2414 # For local WordPress domain URLs, try to read from disk first (no SSRF risk) 2415 if ($is_local_domain && defined('ABSPATH') && !empty('ABSPATH')) { 2418 2416 2419 2417 # file path + windows compatibility … … 2444 2442 2445 2443 # fallback to downloading 2446 2444 2447 2445 # this useragent is needed for google fonts (woff files only + hinted fonts) 2448 2446 $uagent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586'; -
fast-velocity-minify/trunk/readme.txt
r3383667 r3389291 4 4 Requires at least: 5.6 5 5 Requires PHP: 7.2 6 Stable tag: 3.5. 36 Stable tag: 3.5.4 7 7 Tested up to: 6.8.3 8 8 Text Domain: fast-velocity-minify … … 49 49 50 50 == Changelog == 51 52 = 3.5.4 [2025.11.04] = 53 * Removed the unecessary SSRF checks for external requests that were blocking sites behind NAT or intranet deployments 51 54 52 55 = 3.5.3 [2025.10.23] =
Note: See TracChangeset
for help on using the changeset viewer.