details: /erp/devel/pi/rev/c85e7b6e837e
changeset: 11351:c85e7b6e837e
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Thu Mar 24 01:52:52 2011 +0100
summary: Fixed issue 16431: Now CSS data-uri and compression works ok in
Windows servers
diffstat:
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StyleSheetResourceComponent.java
| 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0d47b3ba8381 -r c85e7b6e837e
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StyleSheetResourceComponent.java
---
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StyleSheetResourceComponent.java
Wed Mar 23 22:22:20 2011 +0100
+++
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StyleSheetResourceComponent.java
Thu Mar 24 01:52:52 2011 +0100
@@ -154,8 +154,12 @@
final String contextPath = getContextUrl()
+ resourcePath.substring(0, resourcePath.lastIndexOf("/"));
- final String realPath = realResourcePath.substring(0,
- realResourcePath.lastIndexOf("/"));
+ String realPath = "";
+ if (realResourcePath.lastIndexOf("/") != -1) {
+ realPath = realResourcePath.substring(0,
realResourcePath.lastIndexOf("/"));
+ } else if (realResourcePath.lastIndexOf("\\") != -1) {
+ realPath = realResourcePath.substring(0,
realResourcePath.lastIndexOf("\\"));
+ }
// repair urls
resourceContents = resourceContents.replace("url(./", "url(" +
IMGURLHOLDER + "/");
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits