<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cordia New";
        panose-1:2 11 3 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1773747340;
        mso-list-type:hybrid;
        mso-list-template-ids:-2120189476 1751777714 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-fareast-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'>Mike,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'>In version 6 and above, you need to add a validation block for each substitution variable. <o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><a href="https://mapserver.org/mapfile/validation.html">https://mapserver.org/mapfile/validation.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'>Mike<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.5pt;color:black;mso-fareast-language:ZH-CN'>-- <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.5pt;color:black;mso-fareast-language:ZH-CN'>Michael Smith<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;color:black;mso-fareast-language:ZH-CN'>Remote Sensing/GIS Center<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:10.5pt;color:black;mso-fareast-language:ZH-CN'>US Army Corps of Engineers</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:12.0pt;color:black'>From: </span></b><span style='font-size:12.0pt;color:black'>mapserver-users <mapserver-users-bounces@lists.osgeo.org> on behalf of "Elstermann, Mike" <Mike.Elstermann@itc-halle.de><br><b>Date: </b>Friday, September 7, 2018 at 10:16 AM<br><b>To: </b>"'mapserver-users@lists.osgeo.org'" <mapserver-users@lists.osgeo.org><br><b>Subject: </b>[mapserver-users] MapServer 6.4 URL-Problem (Variable-Substitution)<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><span style='mso-fareast-language:DE'>My problem in URLs with Variable-Substitution:</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'> </span><o:p></o:p></p><ol style='margin-top:0in' start=1 type=1><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo2'><span style='mso-fareast-language:DE'><a href="http://myserver">http://myserver</a>?...</span>&druckvorschauclass='[bez]'='A1' OR '[bez]'='1:500'&… <span style='font-family:Wingdings'>à</span> correct Output (Map-Picture)<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo2'><span style='mso-fareast-language:DE'><a href="http://myserver">http://myserver</a>?...</span>&druckvorschauclass=%27%5Bbez%5D%27%3D%27A1%27%20OR%20%27%5Bbez%5D%27%3D%271%3A500%27&… <span style='font-family:Wingdings'>à</span> incorrect Output (NO Map-Picture)<br>Error-Message: msValidateParameter(): Regular expression error. Parameter pattern validation failed.<o:p></o:p></li></ol><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>In my MapFile:<o:p></o:p></p><p class=MsoNormal style='text-indent:35.4pt'>CLASS<o:p></o:p></p><p class=MsoNormal style='text-indent:35.4pt'>…<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt'>EXPRESSION (%druckvorschauclass%)<o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'>                …</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'>                END</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'> </span><o:p></o:p></p><p class=MsoNormal>Using MapServer 6.4 (in 5.x it was OK)<o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'> </span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Any ideas?</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'> </span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'>THX!</span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'>mikeE.</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:ZH-CN'>_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users<o:p></o:p></span></p></div></body></html>