From 68f35e44ce697d756697436a80fc87041360ea16 Mon Sep 17 00:00:00 2001 From: Mohamed El Mouctar Haidara Date: Mon, 25 May 2020 08:14:45 +0200 Subject: [PATCH] Escape newSource field when checking it's value via Ajax. Fix #1401 (#1402) URLs with special characters need to be escaped when checking the Yaml they are pointing to. Example of such URL are S3 presigned URL: `https://jenkins-jcas-185562170416.s3.amazonaws.com/jenkins-conf.yml?AWSAccessKeyId=AKE123456789&Signature=HelloWorldJ%2F5QKc6TlbeHw%3D&Expires=1590364679`. --- .../io/jenkins/plugins/casc/ConfigurationAsCode/index.jelly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode/index.jelly b/plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode/index.jelly index 093d570e..427387ef 100644 --- a/plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode/index.jelly +++ b/plugin/src/main/resources/io/jenkins/plugins/casc/ConfigurationAsCode/index.jelly @@ -30,7 +30,7 @@

${%Replace configuration source with:}

- +