Changeset 3525

Show
Ignore:
Timestamp:
03/29/12 12:54:21
Author:
johnsa
Message:

admin client: correctly escape event titles when publishing a pending event.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.8/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3521 r3525  
    13641364            </a><xsl:text> </xsl:text> 
    13651365            (<a href="mailto:{$submitterEmail}?subject=[Event%20Submission] {$eventTitle}" title="Email {$submitterEmail}"> 
    1366               <img src="{$resourcesRoot}/resources/email.gif" border="0"/> 
     1366              <img src="{$resourcesRoot}/resources/email.gif" border="0" alt="*"/> 
    13671367              <xsl:copy-of select="$bwStr-AEEF-SendMsg"/> 
    13681368            </a>) 
     
    16521652                  </xsl:if> 
    16531653                  <xsl:text> </xsl:text> 
    1654                   <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwStartClock"/> 
     1654                  <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwStartClock" alt="*"/> 
    16551655 
    16561656                  <select name="eventStartDate.tzid" id="startTzid" class="timezones"> 
     
    16731673              <xsl:choose> 
    16741674                <xsl:when test="form/end/type='E'"> 
    1675                   <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     1675                  <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    16761676                </xsl:when> 
    16771677                <xsl:otherwise> 
    1678                   <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     1678                  <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    16791679                </xsl:otherwise> 
    16801680              </xsl:choose> 
     
    17421742                    </xsl:if> 
    17431743                    <xsl:text> </xsl:text> 
    1744                     <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwEndClock"/> 
     1744                    <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwEndClock" alt="*"/> 
    17451745 
    17461746                    <select name="eventEndDate.tzid" id="endTzid" class="timezones"> 
     
    17661766                <xsl:choose> 
    17671767                  <xsl:when test="form/end/type='D'"> 
    1768                     <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     1768                    <input type="radio" name="eventEndType" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    17691769                  </xsl:when> 
    17701770                  <xsl:otherwise> 
    1771                     <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     1771                    <input type="radio" name="eventEndType" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    17721772                  </xsl:otherwise> 
    17731773                </xsl:choose> 
     
    18401840                <xsl:choose> 
    18411841                  <xsl:when test="form/end/type='N'"> 
    1842                     <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     1842                    <input type="radio" name="eventEndType" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    18431843                  </xsl:when> 
    18441844                  <xsl:otherwise> 
    1845                     <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     1845                    <input type="radio" name="eventEndType" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    18461846                  </xsl:otherwise> 
    18471847                </xsl:choose> 
     
    22152215                            <xsl:copy-of select="$bwStr-AEEF-WeekOn"/> 
    22162216                          </p> 
    2217                           <p> 
    2218                             <div id="weekRecurFields"> 
    2219                               <xsl:call-template name="byDayChkBoxList"> 
    2220                                 <xsl:with-param name="name">byDayWeek</xsl:with-param> 
    2221                               </xsl:call-template> 
    2222                             </div> 
    2223                           </p> 
     2217                          <div id="weekRecurFields"> 
     2218                            <xsl:call-template name="byDayChkBoxList"> 
     2219                              <xsl:with-param name="name">byDayWeek</xsl:with-param> 
     2220                            </xsl:call-template> 
     2221                          </div> 
    22242222                          <p class="weekRecurLinks"> 
    22252223                            <a href="javascript:recurSelectWeekdays('weekRecurFields')"><xsl:copy-of select="$bwStr-AEEF-SelectWeekdays"/></a> | 
     
    22542252                            <div id="monthRecurFields1"> 
    22552253                              <xsl:copy-of select="$bwStr-AEEF-On"/> 
    2256                               <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 
     2254                              <select name="bymonthposPos1" onchange="changeClass('monthRecurFields2','shown')"> 
    22572255                                <xsl:call-template name="recurrenceDayPosOptions"/> 
    22582256                              </select> 
     
    22922290                            <div id="yearRecurFields1"> 
    22932291                              <xsl:copy-of select="$bwStr-AEEF-On"/> 
    2294                               <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 
     2292                              <select name="byyearposPos1" onchange="changeClass('yearRecurFields2','shown')"> 
    22952293                                <xsl:call-template name="recurrenceDayPosOptions"/> 
    22962294                              </select> 
     
    24442442                          </select> 
    24452443                         <xsl:text> </xsl:text> 
    2446                          <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwRecExcClock"/> 
     2444                         <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwRecExcClock" alt="*"/> 
    24472445 
    24482446                        <select name="tzid" id="rdateTzid" class="timezones"> 
     
    30643062    <xsl:param name="eventUrlPrefix"/> 
    30653063    <xsl:param name="canEdit"/> 
     3064     
     3065    <xsl:variable name="escapedTitle"><xsl:call-template name="escapeJson"><xsl:with-param name="string" select="eventTitle"/></xsl:call-template></xsl:variable> 
    30663066    <div class="submitBox"> 
    30673067      <xsl:choose> 
     
    31033103                </select> 
    31043104                <input type="submit" name="publishEvent" value="{$bwStr-SEBu-PublishEvent}"> 
    3105                   <xsl:attribute name="onclick">doPublishEvent(this.form.newCalPath.value,'<xsl:value-of select="$eventTitle"/>','<xsl:value-of select="$eventUrlPrefix"/>',this.form);changeClass('publishBox','invisible');</xsl:attribute> 
     3105                  <xsl:attribute name="onclick">doPublishEvent(this.form.newCalPath.value,"<xsl:value-of select="$escapedTitle"/>","<xsl:value-of select="$eventUrlPrefix"/>",this.form);changeClass('publishBox','invisible');</xsl:attribute> 
    31063106                </input> 
    31073107                <xsl:if test="$portalFriendly = 'false'"> 
     
    31203120              <input type="submit" name="updateSubmitEvent" value="{$bwStr-SEBu-UpdateEvent}"/> 
    31213121              <input type="submit" name="publishEvent" value="{$bwStr-SEBu-PublishEvent}"> 
    3122                 <xsl:attribute name="onclick">doPublishEvent('<xsl:value-of select="form/calendar/all/select/option/@value"/>','<xsl:value-of select="$eventTitle"/>','<xsl:value-of select="$eventUrlPrefix"/>',this.form);</xsl:attribute> 
     3122                <xsl:attribute name="onclick">doPublishEvent("<xsl:value-of select="form/calendar/all/select/option/@value"/>","<xsl:value-of select="$escapedTitle"/>","<xsl:value-of select="$eventUrlPrefix"/>",this.form);</xsl:attribute> 
    31233123              </input> 
    31243124              <input type="submit" name="cancelled" value="{$bwStr-SEBu-Cancel}"/> 
     
    32303230      <xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute> 
    32313231      <xsl:copy-of select="$bwStr-BuRF-And"/> 
    3232       <select width="12em"
     3232      <select
    32333233        <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> 
    32343234        <xsl:if test="$current != $total"> 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r3521 r3525  
    13641364            </a><xsl:text> </xsl:text> 
    13651365            (<a href="mailto:{$submitterEmail}?subject=[Event%20Submission] {$eventTitle}" title="Email {$submitterEmail}"> 
    1366               <img src="{$resourcesRoot}/resources/email.gif" border="0"/> 
     1366              <img src="{$resourcesRoot}/resources/email.gif" border="0" alt="*"/> 
    13671367              <xsl:copy-of select="$bwStr-AEEF-SendMsg"/> 
    13681368            </a>) 
     
    16521652                  </xsl:if> 
    16531653                  <xsl:text> </xsl:text> 
    1654                   <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwStartClock"/> 
     1654                  <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwStartClock" alt="*"/> 
    16551655 
    16561656                  <select name="eventStartDate.tzid" id="startTzid" class="timezones"> 
     
    16731673              <xsl:choose> 
    16741674                <xsl:when test="form/end/type='E'"> 
    1675                   <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" checked="checked" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     1675                  <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" checked="checked" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    16761676                </xsl:when> 
    16771677                <xsl:otherwise> 
    1678                   <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" onClick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
     1678                  <input type="radio" name="eventEndType" id="bwEndDateTimeButton" value="E" onclick="changeClass('endDateTime','shown');changeClass('endDuration','invisible');"/> 
    16791679                </xsl:otherwise> 
    16801680              </xsl:choose> 
     
    17421742                    </xsl:if> 
    17431743                    <xsl:text> </xsl:text> 
    1744                     <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwEndClock"/> 
     1744                    <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwEndClock" alt="*"/> 
    17451745 
    17461746                    <select name="eventEndDate.tzid" id="endTzid" class="timezones"> 
     
    17661766                <xsl:choose> 
    17671767                  <xsl:when test="form/end/type='D'"> 
    1768                     <input type="radio" name="eventEndType" value="D" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     1768                    <input type="radio" name="eventEndType" value="D" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    17691769                  </xsl:when> 
    17701770                  <xsl:otherwise> 
    1771                     <input type="radio" name="eventEndType" value="D" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
     1771                    <input type="radio" name="eventEndType" value="D" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','shown');"/> 
    17721772                  </xsl:otherwise> 
    17731773                </xsl:choose> 
     
    18401840                <xsl:choose> 
    18411841                  <xsl:when test="form/end/type='N'"> 
    1842                     <input type="radio" name="eventEndType" value="N" checked="checked" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     1842                    <input type="radio" name="eventEndType" value="N" checked="checked" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    18431843                  </xsl:when> 
    18441844                  <xsl:otherwise> 
    1845                     <input type="radio" name="eventEndType" value="N" onClick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
     1845                    <input type="radio" name="eventEndType" value="N" onclick="changeClass('endDateTime','invisible');changeClass('endDuration','invisible');"/> 
    18461846                  </xsl:otherwise> 
    18471847                </xsl:choose> 
     
    22152215                            <xsl:copy-of select="$bwStr-AEEF-WeekOn"/> 
    22162216                          </p> 
    2217                           <p> 
    2218                             <div id="weekRecurFields"> 
    2219                               <xsl:call-template name="byDayChkBoxList"> 
    2220                                 <xsl:with-param name="name">byDayWeek</xsl:with-param> 
    2221                               </xsl:call-template> 
    2222                             </div> 
    2223                           </p> 
     2217                          <div id="weekRecurFields"> 
     2218                            <xsl:call-template name="byDayChkBoxList"> 
     2219                              <xsl:with-param name="name">byDayWeek</xsl:with-param> 
     2220                            </xsl:call-template> 
     2221                          </div> 
    22242222                          <p class="weekRecurLinks"> 
    22252223                            <a href="javascript:recurSelectWeekdays('weekRecurFields')"><xsl:copy-of select="$bwStr-AEEF-SelectWeekdays"/></a> | 
     
    22542252                            <div id="monthRecurFields1"> 
    22552253                              <xsl:copy-of select="$bwStr-AEEF-On"/> 
    2256                               <select name="bymonthposPos1" width="7em" onchange="changeClass('monthRecurFields2','shown')"> 
     2254                              <select name="bymonthposPos1" onchange="changeClass('monthRecurFields2','shown')"> 
    22572255                                <xsl:call-template name="recurrenceDayPosOptions"/> 
    22582256                              </select> 
     
    22922290                            <div id="yearRecurFields1"> 
    22932291                              <xsl:copy-of select="$bwStr-AEEF-On"/> 
    2294                               <select name="byyearposPos1" width="7em" onchange="changeClass('yearRecurFields2','shown')"> 
     2292                              <select name="byyearposPos1" onchange="changeClass('yearRecurFields2','shown')"> 
    22952293                                <xsl:call-template name="recurrenceDayPosOptions"/> 
    22962294                              </select> 
     
    24442442                          </select> 
    24452443                         <xsl:text> </xsl:text> 
    2446                          <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" alt="bwClock" id="bwRecExcClock"/> 
     2444                         <img src="{$resourcesRoot}/resources/clockIcon.gif" width="16" height="15" border="0" id="bwRecExcClock" alt="*"/> 
    24472445 
    24482446                        <select name="tzid" id="rdateTzid" class="timezones"> 
     
    30643062    <xsl:param name="eventUrlPrefix"/> 
    30653063    <xsl:param name="canEdit"/> 
     3064     
     3065    <xsl:variable name="escapedTitle"><xsl:call-template name="escapeJson"><xsl:with-param name="string" select="eventTitle"/></xsl:call-template></xsl:variable> 
    30663066    <div class="submitBox"> 
    30673067      <xsl:choose> 
     
    31033103                </select> 
    31043104                <input type="submit" name="publishEvent" value="{$bwStr-SEBu-PublishEvent}"> 
    3105                   <xsl:attribute name="onclick">doPublishEvent(this.form.newCalPath.value,'<xsl:value-of select="$eventTitle"/>','<xsl:value-of select="$eventUrlPrefix"/>',this.form);changeClass('publishBox','invisible');</xsl:attribute> 
     3105                  <xsl:attribute name="onclick">doPublishEvent(this.form.newCalPath.value,"<xsl:value-of select="$escapedTitle"/>","<xsl:value-of select="$eventUrlPrefix"/>",this.form);changeClass('publishBox','invisible');</xsl:attribute> 
    31063106                </input> 
    31073107                <xsl:if test="$portalFriendly = 'false'"> 
     
    31203120              <input type="submit" name="updateSubmitEvent" value="{$bwStr-SEBu-UpdateEvent}"/> 
    31213121              <input type="submit" name="publishEvent" value="{$bwStr-SEBu-PublishEvent}"> 
    3122                 <xsl:attribute name="onclick">doPublishEvent('<xsl:value-of select="form/calendar/all/select/option/@value"/>','<xsl:value-of select="$eventTitle"/>','<xsl:value-of select="$eventUrlPrefix"/>',this.form);</xsl:attribute> 
     3122                <xsl:attribute name="onclick">doPublishEvent("<xsl:value-of select="form/calendar/all/select/option/@value"/>","<xsl:value-of select="$escapedTitle"/>","<xsl:value-of select="$eventUrlPrefix"/>",this.form);</xsl:attribute> 
    31233123              </input> 
    31243124              <input type="submit" name="cancelled" value="{$bwStr-SEBu-Cancel}"/> 
     
    32303230      <xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute> 
    32313231      <xsl:copy-of select="$bwStr-BuRF-And"/> 
    3232       <select width="12em"
     3232      <select
    32333233        <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> 
    32343234        <xsl:if test="$current != $total">