luanti-org/luanti

Insufficient validation of mod.conf `name`

Open

#16,478 opened on Sep 7, 2025

View on GitHub
 (2 comments) (3 reactions) (0 assignees)C++ (2,395 forks)auto 404
@ Mainmenu / SettingsmenuBugLow prioritygood first issue

Repository metrics

Stars
 (13,341 stars)
PR merge metrics
 (PR metrics pending)

Description

Luanti 176cadc377aab87a994f5870b97486058afe24c5 on Linux

Description

  1. Create mods/test3/mod.conf
  2. Input
name = """
haha ;]
oops
"""
  1. The multiline name will look weird in the menu and after opening the mod selection menu you will also get this: 2025-09-07 12:24:08: ERROR[Main]: Invalid label element(3): '0.75,0.7;haha ;'

While there is an error if you try to activate the mod, IMO we should just filter out mods that fail validation early in the code.

Contributor guide