summaryrefslogtreecommitdiffstats
path: root/theme-compiler/src/com/vaadin/sass
diff options
context:
space:
mode:
authorHaijian Wang <haijian@vaadin.com>2013-01-02 16:54:11 +0200
committerHaijian Wang <haijian@vaadin.com>2013-01-02 16:54:11 +0200
commit9df030ba55101db4a3a35c301769655d6fa7aa08 (patch)
tree5f2ba1c2d0da7c0807fca21856615ebd16eca9cb /theme-compiler/src/com/vaadin/sass
parent7ed4e5e6ff8ca08ab50225ac5c33bed59a226217 (diff)
downloadvaadin-framework-9df030ba55101db4a3a35c301769655d6fa7aa08.tar.gz
vaadin-framework-9df030ba55101db4a3a35c301769655d6fa7aa08.zip
fix Ticket #10506, remove quotes in url path
taking single quote into consideration Change-Id: I966ffeba8a60c7c16980cca3dfa69935e0aca67b
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass')
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java b/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java
index 1ba1072767..67e6df6383 100644
--- a/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java
+++ b/theme-compiler/src/com/vaadin/sass/internal/visitor/ImportNodeHandler.java
@@ -100,7 +100,9 @@ public class ImportNodeHandler {
LexicalUnit value = ((RuleNode) child).getValue();
while (value != null) {
if (value.getLexicalUnitType() == LexicalUnit.SAC_URI) {
- String path = value.getStringValue();
+ String path = value.getStringValue()
+ .replaceAll("^\"|\"$", "")
+ .replaceAll("^'|'$", "");
if (!path.startsWith("/") && !path.contains(":")) {
path = prefix + path;
path = StringUtil.cleanPath(path);