Open Redirect 취약점 수정 #318

This commit is contained in:
thisgun committed 2024-06-05 14:56:50 +09:00
1 parent 940e701fa4
commit e03e01d410
2 files changed
+25

No files matched your search

+4
View File
@@ -31,6 +31,10 @@ if($url){
if( preg_match('#^/{3,}#', $url) ){
$url = preg_replace('#^/{3,}#', '/', $url);
}
if (function_exists('safe_filter_url_host')) {
$url = safe_filter_url_host($url);
}
}
$url = get_text($url);