Revision 6dc07508
Added by Jim Pingle about 3 years ago
src/etc/inc/pfsense-utils.inc | ||
---|---|---|
2599 | 2599 |
function process_alias_urltable($name, $type, $url, $freq, $forceupdate=false, $validateonly=false) { |
2600 | 2600 |
global $g, $config; |
2601 | 2601 |
|
2602 |
if (!is_validaliasname($name) || !isURL($url)) { |
|
2603 |
return false; |
|
2604 |
} |
|
2605 |
|
|
2602 | 2606 |
$urltable_prefix = "/var/db/aliastables/"; |
2603 |
$urltable_filename = $urltable_prefix . $name . ".txt";
|
|
2607 |
$urltable_filename = $urltable_prefix . basename($name) . ".txt";
|
|
2604 | 2608 |
$tmp_urltable_filename = $urltable_filename . ".tmp"; |
2605 | 2609 |
|
2606 | 2610 |
// Make the aliases directory if it doesn't exist |
Also available in: Unified diff
Skip URL tables with invalid names. Fixes #13425
(cherry picked from commit db0cdbc8e77a47b45a6da4061e5d8e59e0fc592d)