diff options
author | Haijian Wang <haijian@vaadin.com> | 2013-01-02 16:54:11 +0200 |
---|---|---|
committer | Haijian Wang <haijian@vaadin.com> | 2013-01-02 16:54:11 +0200 |
commit | 9df030ba55101db4a3a35c301769655d6fa7aa08 (patch) | |
tree | 5f2ba1c2d0da7c0807fca21856615ebd16eca9cb /theme-compiler/src/com/vaadin/sass | |
parent | 7ed4e5e6ff8ca08ab50225ac5c33bed59a226217 (diff) | |
download | vaadin-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.java | 4 |
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); |