Ensure properly encoded popup title
authorJoey Schulze <joey@infodrom.org>
Fri, 8 Nov 2019 21:17:19 +0000 (22:17 +0100)
committerJoey Schulze <joey@infodrom.org>
Fri, 8 Nov 2019 21:17:19 +0000 (22:17 +0100)
src/Infodrom/calendar/index.wml

index 7c63676..c15d24d 100644 (file)
@@ -255,6 +255,7 @@ div.popup_body div#log div.row0
 </select>
 
 <protect><script type="text/javascript">
+var POPUP_TITLE_COMMENT = '<?php echo utf8_encode('Bemerkung hinzufügen'); ?>';
 function menu_close()
 {
     $('div#menu').hide();
@@ -319,7 +320,7 @@ function add_comment()
                    '<textarea name="comment" style="width: 296px; height:65px;"></textarea>',
                    '<div style="text-align: center; margin-top: 5px;"><input type="submit" value="Speichern"></div>',
                    '</form>'];
-       commentwindow = new Popup('Bemerkung hinzufügen', '300px', false, html.join(''));
+       commentwindow = new Popup(POPUP_TITLE_COMMENT, '300px', false, html.join(''));
        commentwindow.centerPopup();
        $('form#comment input[type="submit"]').click(function(e){
            $.invoke('Calendar_Item/AddLog', $('form#comment').serialize(), function(data){