require allow_unsigned for ui_remote_url setting

This commit is contained in:
Jeff Raymakers
2025-03-07 15:02:14 -08:00
parent b9d0cb3bc5
commit 5c9cda1dab
3 changed files with 15 additions and 5 deletions

View File

@@ -1,8 +1,13 @@
#include "settings.hpp"
#include <duckdb.hpp>
namespace duckdb {
std::string GetRemoteUrl(const ClientContext &context) {
if (!context.db->config.options.allow_unsigned_extensions) {
return UI_REMOTE_URL_SETTING_DEFAULT;
}
return internal::GetSetting<std::string>(context, UI_REMOTE_URL_SETTING_NAME);
}