Skip to content

Commit

Permalink
Use filter_var to validate URLs. Issue #13425
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Jan 12, 2023
1 parent c5d5b76 commit 2081341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/pfsense-utils.inc
Expand Up @@ -2599,7 +2599,7 @@ function pfs_version_compare($cur_time, $cur_text, $remote) {
function process_alias_urltable($name, $type, $url, $freq, $forceupdate=false, $validateonly=false) {
global $g, $config;

if (!is_validaliasname($name) || !isURL($url)) {
if (!is_validaliasname($name) || !filter_var($url, FILTER_VALIDATE_URL)) {
return false;
}

Expand Down

0 comments on commit 2081341

Please sign in to comment.