[PR #11831] [MERGED] Fixes #11758 - replace unsafe chars in menu label #13851

Closed
opened 2025-12-29 23:21:10 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11831
Author: @rganascim
Created: 2/25/2023
Status: Merged
Merged: 2/27/2023
Merged by: @jeremystretch

Base: developHead: 11758-unsafe-chars-menu-label


📝 Commits (2)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 netbox/extras/plugins/navigation.py (+2 -1)

📄 Description

Fixes: #11758

The proposed changes replace any kind of special characters with underscores (_).
I chose not to use regular expressions and instead opted for a simple check to replace the special characters (although there may be other invalid characters beyond the scope of this change). If you would like me to use regular expressions instead, please let me know


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/11831 **Author:** [@rganascim](https://github.com/rganascim) **Created:** 2/25/2023 **Status:** ✅ Merged **Merged:** 2/27/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11758-unsafe-chars-menu-label` --- ### 📝 Commits (2) - [`90ecc86`](https://github.com/netbox-community/netbox/commit/90ecc86e11adff2efa548003c05e4497e8ba3130) Fixes #11758 - replace unsafe chars in menu label - [`c57030a`](https://github.com/netbox-community/netbox/commit/c57030a6781f0bc4cea5f4fd5c4b619ed1e5ae93) Fixes #11758 - replace unsafe chars in menu label ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/plugins/navigation.py` (+2 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11758 <!-- Please include a summary of the proposed changes below. --> The proposed changes replace any kind of special characters with underscores (_). I chose not to use regular expressions and instead opted for a simple check to replace the special characters (although there may be other invalid characters beyond the scope of this change). If you would like me to use regular expressions instead, please let me know --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:10 +01:00
adam closed this issue 2025-12-29 23:21:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13851