[PR #19267] [MERGED] Fixes #19265: Strip linebreaks from URLs for logging #15586

Closed
opened 2025-12-30 00:22:52 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19267
Author: @jeremystretch
Created: 4/22/2025
Status: Merged
Merged: 4/22/2025
Merged by: @jeremystretch

Base: mainHead: 19265-logger-escape-url


📝 Commits (1)

📊 Changes

2 files changed (+13 additions, -3 deletions)

View changed files

📝 netbox/account/views.py (+5 -3)
📝 netbox/utilities/string.py (+8 -0)

📄 Description

Fixes: #19265

  • Introduce the remove_linebreaks() utility function
  • Remove line breaks from logged values

🔄 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/19267 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/22/2025 **Status:** ✅ Merged **Merged:** 4/22/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `19265-logger-escape-url` --- ### 📝 Commits (1) - [`f952516`](https://github.com/netbox-community/netbox/commit/f952516bda32be3a7b5ddf9cb96e8bcf8c5f367a) Fixes #19265: Strip linebreaks from URLs for logging ### 📊 Changes **2 files changed** (+13 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/account/views.py` (+5 -3) 📝 `netbox/utilities/string.py` (+8 -0) </details> ### 📄 Description ### Fixes: #19265 - Introduce the `remove_linebreaks()` utility function - Remove line breaks from logged values --- <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-30 00:22:52 +01:00
adam closed this issue 2025-12-30 00:22:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15586