CUPS when adding a printer via the web interface gives an incorrect URI device
Steps:
1) Connect the printer via USB to the PC;
2) Menu -> System -> Printing settings (CUPS settings) -> Administration -> Add a printer -> Select the desired printer -> Continue.
Result: hieroglyphs in the "Connection" field.
Details:
does not depend on the browser and specific printer;
CUPS version 2.4.8 and higher
Expected result: correct display of characters.
A little analysis revealed that this commit f9927a4b08642dffc44cd41689ee70c171f34a39 breaks symbols.
CUPS when adding a printer via the web interface gives an incorrect URI device
Steps: 1) Connect the printer via USB to the PC; 2) Menu -> System -> Printing settings (CUPS settings) -> Administration -> Add a printer -> Select the desired printer -> Continue.
Result: hieroglyphs in the "Connection" field.
Details:
Expected result: correct display of characters.
A little analysis revealed that this commit f9927a4b08642dffc44cd41689ee70c171f34a39 breaks symbols.
The problem seems to be in this line
Replacing the cgiGetTextfield() function with cgiGetVariable() solves the problem, but is this a correct fix?