jenkinsci / extended-choice-parameter-plugin

Jenkins extended-choice-parameter plugin
https://plugins.jenkins.io/extended-choice-parameter/
MIT License
74 stars 98 forks source link

Javascript should not be escaped (broken plugin) #107

Open ylacaute opened 7 months ago

ylacaute commented 7 months ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.426.2 OS: Linux - 3.10.0-1160.80.1.el7.x86_64 Java: 17.0.9 - Eclipse Adoptium (OpenJDK 64-Bit Server VM) --- extended-choice-parameter:376.v2e02857547b_a_ ```

(not all plugins are listed for security reasons)

What Operating System are you using (both controller, and any agents involved in the problem)?

This is not the problem

Reproduction steps

Use the plugin with a javascript file containing the character "&".

Expected Results

Character "&" should stay as it.

Actual Results

Characters like "&" of "<" are escaped (to "\&", "\<"...)

This is a huge problem because the plugin become unusable right now.

Anything else?

Was working as expected with version 359.v35dcfdd0c20d

Are you interested in contributing a fix?

Maybe