ui/ncurses: Validate URL field
[petitboot] / ui / ncurses / nc-config.c
index 8ffa5ef0d2ffadc92d2b9c6570a09cc7c1ea0e60..5c0f23bd88d284ff962ed70aa4571c19d01bb215 100644 (file)
@@ -1042,6 +1042,7 @@ static void config_screen_setup_widgets(struct config_screen *screen,
 
        screen->widgets.url_l = widget_new_label(set, 0, 0, _("URL:"));
        screen->widgets.url_f = widget_new_textbox(set, 0, 0, 32, url);
+       widget_textbox_set_validator_url(screen->widgets.url_f);
        screen->widgets.url_help_l =
                widget_new_label(set, 0, 0, _("(eg. tftp://)"));