Index: openacs-4/packages/xowiki/tcl/folder-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/folder-procs.tcl,v diff -u -r1.32 -r1.33 --- openacs-4/packages/xowiki/tcl/folder-procs.tcl 8 Jun 2015 09:42:26 -0000 1.32 +++ openacs-4/packages/xowiki/tcl/folder-procs.tcl 15 Jun 2015 19:21:06 -0000 1.33 @@ -649,7 +649,7 @@ foreach v $viewers { set wf_link "${v}?p.folder=[${current_folder} name]" append wf_link "&m=create-or-use" - append viewer_links [subst -nocommands -nobackslashes {
  • view with $v
  • }] + append viewer_links [subst -nocommands -nobackslashes {
  • view with $v
  • }] } return "$menubar [$t asHTML]" Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.246 -r1.247 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 8 Jun 2015 15:51:07 -0000 1.246 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 15 Jun 2015 19:21:06 -0000 1.247 @@ -1370,7 +1370,7 @@ set date [$date_field pretty_value [$object property _last_modified]] if {[my with_user_link]} { - set user_link_begin "" + set user_link_begin "" set user_link_end "" } else { set user_link_begin "" @@ -1429,7 +1429,7 @@ set link_label $v } regsub -all & $v "&" v - return "$link_label" + return "$link_label" } } @@ -1449,7 +1449,7 @@ if {$v ne ""} { set link_label [my localize [my link_label]] regsub -all & $v "&" v - return " \[ $link_label \]" + return " \[ $link_label \]" } } @@ -2553,7 +2553,7 @@ foreach o [my set options] { lassign $o label value set href [$package_id pretty_link -parent_id $parent_id $value] - set labels($value) "$label" + set labels($value) "$label" } set hrefs [list] foreach i $v { @@ -2562,7 +2562,7 @@ set labels($i) $i } set href [$package_id pretty_link -parent_id $parent_id $i] - lappend hrefs "$labels($i)" + lappend hrefs "$labels($i)" } if {[my multiple_style] eq "list"} { return "\n" @@ -2578,7 +2578,7 @@ return [$object include [list $value -decoration rightbox]] } set href [$package_id pretty_link -parent_id $parent_id $value] - return "$label" + return "$label" } } } Index: openacs-4/packages/xowiki/tcl/import-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/import-procs.tcl,v diff -u -r1.29 -r1.30 --- openacs-4/packages/xowiki/tcl/import-procs.tcl 27 Apr 2015 15:28:22 -0000 1.29 +++ openacs-4/packages/xowiki/tcl/import-procs.tcl 15 Jun 2015 19:21:06 -0000 1.30 @@ -30,7 +30,7 @@ "updated" { set operation "[_ xowiki.updated]" } "inherited" { set operation "[_ xowiki.inherited]" } } - my append log "$operation$name\n" + my append log "$operation$name\n" } Importer instproc report {} { my instvar added updated replaced inherited Index: openacs-4/packages/xowiki/tcl/includelet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/includelet-procs.tcl,v diff -u -r1.195 -r1.196 --- openacs-4/packages/xowiki/tcl/includelet-procs.tcl 12 Jun 2015 21:00:30 -0000 1.195 +++ openacs-4/packages/xowiki/tcl/includelet-procs.tcl 15 Jun 2015 19:21:06 -0000 1.196 @@ -66,7 +66,7 @@ 2 { set v [lindex $pp 1] if {$v eq ""} {set v {""}} - append result " [lindex $pp 0] $v" + append result " [lindex $pp 0] [ns_quotehtml $v]" } } #append result "\n" @@ -81,11 +81,11 @@ ::xowiki::Includelet proc available_includelets {} { if {[my array exists html]} {my array unset html} my describe_includelets [::xowiki::Includelet info subclass] - set result "" return $result } @@ -441,7 +441,7 @@ set html [next] set localized_title [::xo::localize $title] set link [expr {[string match "*:*" $name] ? - "$localized_title" : + "[ns_quotehtml $localized_title]" : $localized_title}] ::xo::render_localizer return [subst [[self class] set template]] @@ -461,7 +461,7 @@ set localized_title [::xo::localize $title] set edit_button [my include [list edit-item-button -book_mode true]] set link [expr {[string match "*:*" $name] ? - "$localized_title" : + "[ns_quotehtml $localized_title]" : $localized_title}] return [subst [[self class] set template]] } -set template {
    @@ -551,9 +551,8 @@ my get_parameters set parent_ids [[my set __including_page] parent_id] set href [export_vars -base [$package_id package_url] {{rss $span} parent_ids name_filter title entries_of}] - regsub -all & $href "&" href ::xo::Page requireLink -rel alternate -type application/rss+xml -title RSS -href $href - return "RSS" + return "RSS" } ############################################################################# @@ -584,8 +583,7 @@ 'scrollbars=yes,width=700,height=575,status=yes,resizable=yes,scrollbars=yes')) }] regsub -all {[\n ]+} $href " " href - regsub -all & $href "&" href - return "$label" + return "[ns_quotehtml $label]" } ############################################################################# @@ -1198,14 +1196,15 @@ return "No data available from $url
    $detail" } else { set channel [$feed channel] - #set html "

    [$channel title]

    " - set html "
      \n" + #set html "

      [ns_quotehtml [$channel title]]

      " + set html "
        \n" set i 0 foreach item [ $feed items ] { - append html "
      • [$item title]
        [$item description] #xowiki.weblog-more#\n" + append html "
      • [ns_quotehtml [$item title]]
        \ + [ns_quotehtml [$item description]] #xowiki.weblog-more#\n" if {[incr i] >= $max_entries} break } - append html "
      \n" + append html "
    \n" return $html } } @@ -1370,8 +1369,8 @@ if {$summary} {lappend q "summary=$summary"} if {$popular} {lappend q "popular=$popular"} set link $href$tag?[join $q &] - #lappend entries "$tag ($nr)" - lappend entries "$tag " + #lappend entries "$tag ([ns_quotehtml $nr])" + lappend entries "[ns_quotehtml $tag] " } return [expr {[llength $entries] > 0 ? "

    $label

    [join $entries {, }]
    \n" : @@ -1409,17 +1408,17 @@ #foreach tag $tags {lappend entries "$tag"} set href [$package_id package_url]/tag/ - foreach tag $tags {lappend entries ""} + foreach tag $tags {lappend entries ""} set tags_with_links [join [lsort $entries] {, }] if {![my exists id]} {my set id [::xowiki::Includelet html_id [self]]} set content [subst -nobackslashes { #xowiki.your_tags_label#: $tags_with_links (#xowiki.edit_link#, #xowiki.popular_tags_link#) - +
    }] return $content @@ -1454,7 +1453,7 @@ foreach cat_id [category::get_mapped_categories [$__including_page set item_id]] { lassign [category::get_data $cat_id] category_id category_name tree_id tree_name #my log "--cat $cat_id $category_id $category_name $tree_id $tree_name" - set entry "$category_name ($tree_name)" + set entry "[ns_quotehtml $category_name ($tree_name)]" if {$notification_type ne ""} { set notification_text "Subscribe category $category_name in tree $tree_name" set notifications_return_url [expr {[info exists return_url] ? $return_url : [ad_return_url]}] @@ -1467,7 +1466,7 @@ {pretty_name $notification_text} \ {type_id $notification_type} \ {object_id $category_id}}] - append entry " " \ + append entry " " \ "" @@ -1527,8 +1526,7 @@ {title "[string range [$__including_page title] 0 74]"} {body_text "[string range $description 0 349]"} }] - regsub -all & $digg_link "&" digg_link - return "Digg!" + return "Digg!" } ::xowiki::IncludeletClass create delicious \ @@ -1559,8 +1557,7 @@ {notes "[string range $description 0 199]"} tags }] - regsub -all & $delicious_link "&" delicious_link - return "Add to your del.icio.usdel.icio.us" + return "Add to your del.icio.usdel.icio.us" } @@ -1583,7 +1580,7 @@ set rssurl [ad_urlencode $rssurl] set my_yahoo_link "http://us.rd.yahoo.com/my/atm/$publisher/$feedname/*http://add.my.yahoo.com/rss?url=$rssurl" - return "Add to My Yahoo!" + return "Add to My Yahoo!" } @@ -1613,7 +1610,7 @@ } if {$pid ne ""} { ::xowiki::Package require $pid - lappend refs "$name" + lappend refs "[ns_quotehtml $name]" } } set references [join $refs ", "] @@ -1658,7 +1655,7 @@ } if {$pid ne ""} { ::xowiki::Package require $pid - lappend refs "$name" + lappend refs "[ns_quotehtml $name]" } } @@ -2948,10 +2945,10 @@ if {$link ne ""} { set button_class [namespace tail [my info class]] set props "" - if {$alt ne ""} {append props "alt=\"$alt\" "} - if {$title ne ""} {append props "title=\"$title\" "} - if {$target ne ""} {append props "target=\"$target\" "} - set html " " + if {$alt ne ""} {append props "alt=\"[ns_quotehtml $alt]\" "} + if {$title ne ""} {append props "title=\"[ns_quotehtml $title]\" "} + if {$target ne ""} {append props "target=\"[ns_quotehtml $target]\" "} + set html " " } return $html } @@ -3122,8 +3119,8 @@ array set n $nodes foreach {node label} $nodes { - set link "$label" - append nodesHTML "
        $link
    \n" + set link "[ns_quotehtml $label]" + append nodesHTML "
        [ns_quotehtml $link]
    \n" } set edgesHTML ""; set c 0 @@ -3306,7 +3303,7 @@ } elseif {[array size user] == 1} { set user_id [lindex [array names user] 0] append result "

    Last $total activities were done by user " \ - "[::xo::get_user_name $user_id]." + "[ns_quotehtml [::xo::get_user_name $user_id]]." } else { append result "

    Collaborations in last $total activities by [array size user] Users in this wiki

    " @@ -3463,7 +3460,7 @@ } set msg_key [namespace tail [my info class]] set label [_ xowiki.$msg_key [list form_name [$form name]]]$label_suffix - return "$label" + return "[ns_quotehtml $label]" } Class create form-menu-button-new -superclass form-menu-button -parameter { @@ -4076,17 +4073,17 @@ set label [$form_item name] if {$with_form_link} { - append html [_ xowiki.entries_using_form [list form "$label"]] + append html [_ xowiki.entries_using_form [list form "[ns_quotehtml $label]"]] } append html [t1 asHTML] if {$csv} { set csv_href "[::xo::cc url]?[::xo::cc actual_query]&includelet_key=[ns_urlencode $includelet_key]&generate=csv" - lappend links "csv" + lappend links "csv" } if {[info exists voting_form]} { set href "[::xo::cc url]?[::xo::cc actual_query]&includelet_key=[ns_urlencode $includelet_key]&generate=voting_form" - lappend links " Generate Voting Form $voting_form" + lappend links " Generate Voting Form $voting_form" } append html [join $links ,] #my log "render done" @@ -4180,7 +4177,7 @@ set form_href [$item_id pretty_link] set action updated } - return "#xowiki.form-$action# $form_name" + return "#xowiki.form-$action# [ns_quotehtml $form_name]" } } @@ -4204,8 +4201,8 @@ my get_parameters if {$title eq ""} {set title $url} - set content "" - append content "

    $title

    " + set content "" + append content "

    [ns_quotehtml $title]

    " return $content } @@ -4507,7 +4504,7 @@ flowplayer instproc render {} { my get_parameters - return " + return "