Project

General

Profile

Actions

Feature #15323

open

Display server description when WOL is sent using mac url or power-on button

Added by Phil Wardt 10 months ago. Updated 9 days ago.

Status:
Pull Request Review
Priority:
Normal
Assignee:
-
Category:
Wake on LAN
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
25.03
Release Notes:
Default

Description

When we use the send WOL to all devices link, the description of servers is properly printed
However, when we send WOL to a single server clicking on mac url or power-on button, the description is not printed

Fix this and properly display the description when sending WOL to a single server using both links


Files

Actions #1

Updated by Phil Wardt 10 months ago

Github commit:
https://github.com/pfsense/pfsense/pull/4673

And a patch file for current pfsense 2.7.2

Actions #2

Updated by Jordan G 7 months ago

the described behavior is also present in the current version of pfSense+ as well (24.03)

Actions #3

Updated by Jim Pingle 7 months ago

  • Status changed from New to Pull Request Review
  • Target version set to 2.8.0
  • Plus Target Version set to 24.08
Actions #4

Updated by Jim Pingle 2 months ago

  • Plus Target Version changed from 24.08 to 24.11
Actions #5

Updated by Jim Pingle 2 months ago

  • Plus Target Version changed from 24.11 to 25.01
Actions #6

Updated by Jim Pingle 13 days ago

  • Plus Target Version changed from 25.01 to 25.03
Actions #7

Updated by Phil Wardt 11 days ago

I just noticed that the widget needs also a patch to display server description when wol is sent using the widget.
Should it be done on distinct commit than this ?

Actions #8

Updated by Jim Pingle 11 days ago

Both could be on the same PR since they're for the same issue, but the PR needs work anyhow -- I left a comment on there.

It's helpful to use Git to squash the commits so they only appear as one commit in the PR, but not a hard requirement in most cases.

Actions #9

Updated by Phil Wardt 9 days ago

Jim Pingle wrote in #note-8:

Both could be on the same PR since they're for the same issue, but the PR needs work anyhow -- I left a comment on there.

It's helpful to use Git to squash the commits so they only appear as one commit in the PR, but not a hard requirement in most cases.

Is it ok if I use hmtlspecialchars() instead, as I should've done from start in fact ? It'll make it safe in that case
Or you prefer the check from config entries ?

Actions #10

Updated by Jim Pingle 9 days ago

While that method offers protection, it's still putting too much trust in user-supplied data to get passed around. Looking up the entry is better since it eliminates the concern entirely.

Actions

Also available in: Atom PDF