comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 322:40442cbfbcc7

Fix invalid quoting for string expressions
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Sep 2012 10:27:26 +0200
parents b6c0fbae16dc
children 5e7e6d99f997
comparison
equal deleted inserted replaced
321:b6c0fbae16dc 322:40442cbfbcc7
872 } 872 }
873 catch(NumberFormatException nfe) { 873 catch(NumberFormatException nfe) {
874 //The expression value is a strings. 874 //The expression value is a strings.
875 expression += "\"["; 875 expression += "\"[";
876 expression += sanitizeAttribute(ce.getAttribute("expression_field_0"), 876 expression += sanitizeAttribute(ce.getAttribute("expression_field_0"),
877 prefixToRemove, prefix, isShapeFile) + "]"; 877 prefixToRemove, prefix, isShapeFile) + "]\"";
878 expression += " " + ce.getAttribute("expression_operator"); 878 expression += " " + ce.getAttribute("expression_operator");
879 expression += " \"" + ce.getAttribute("value") + "\")"; 879 expression += " \"" + ce.getAttribute("value") + "\")";
880 } 880 }
881 catch(Exception e) { 881 catch(Exception e) {
882 e.printStackTrace(); 882 e.printStackTrace();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)