- Timestamp:
- 2014-03-17T21:36:16+13:00 (10 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/macros/query.dm
r28898 r28911 111 111 _historypagescriptextra_{ 112 112 113 var histvalue0='_histvalue0 _';114 var histvalue1='_histvalue1 _';115 var histvalue2='_histvalue2 _';116 var histvalue3='_histvalue3 _';117 var histvalue4='_histvalue4 _';118 var histvalue5='_histvalue5 _';119 var histvalue6='_histvalue6 _';120 var histvalue7='_histvalue7 _';121 var histvalue8='_histvalue8 _';122 var histvalue9='_histvalue9 _';123 var histvalue10='_histvalue10 _';124 var histvalue11='_histvalue11 _';125 var histvalue12='_histvalue12 _';126 var histvalue13='_histvalue13 _';127 var histvalue14='_histvalue14 _';128 var histvalue15='_histvalue15 _';129 var histvalue16='_histvalue16 _';130 var histvalue17='_histvalue17 _';131 var histvalue18='_histvalue18 _';132 var histvalue19='_histvalue19 _';113 var histvalue0='_histvalue0Jssafe_'; 114 var histvalue1='_histvalue1Jssafe_'; 115 var histvalue2='_histvalue2Jssafe_'; 116 var histvalue3='_histvalue3Jssafe_'; 117 var histvalue4='_histvalue4Jssafe_'; 118 var histvalue5='_histvalue5Jssafe_'; 119 var histvalue6='_histvalue6Jssafe_'; 120 var histvalue7='_histvalue7Jssafe_'; 121 var histvalue8='_histvalue8Jssafe_'; 122 var histvalue9='_histvalue9Jssafe_'; 123 var histvalue10='_histvalue10Jssafe_'; 124 var histvalue11='_histvalue11Jssafe_'; 125 var histvalue12='_histvalue12Jssafe_'; 126 var histvalue13='_histvalue13Jssafe_'; 127 var histvalue14='_histvalue14Jssafe_'; 128 var histvalue15='_histvalue15Jssafe_'; 129 var histvalue16='_histvalue16Jssafe_'; 130 var histvalue17='_histvalue17Jssafe_'; 131 var histvalue18='_histvalue18Jssafe_'; 132 var histvalue19='_histvalue19Jssafe_'; 133 133 134 134 function inputQuery(value) \{ -
main/trunk/greenstone2/perllib/plugouts/BasePlugout.pm
r28804 r28911 918 918 my $rss_entry = "<item>\n"; 919 919 $rss_entry .= " <title>$dc_title</title>\n"; 920 $rss_entry .= " <link>_httpdomain __httpcollection_/document/$oid</link>\n";920 $rss_entry .= " <link>_httpdomainHtmlsafe__httpcollection_/document/$oid</link>\n"; 921 921 $rss_entry .= "</item>"; 922 922 -
main/trunk/greenstone2/runtime-src/src/recpt/basequeryaction.cpp
r28899 r28911 606 606 histvalue += i; 607 607 disp.setmacro(histvalue, "query", escquery); 608 disp.setmacro(histvalue+"Jssafe", "query", encodeForJavascript(escquery)); 608 609 format_user_info(cgiargs, userinfo, args, protos, logout); 609 610 -
main/trunk/greenstone2/runtime-src/src/recpt/queryaction.cpp
r28899 r28911 743 743 << "<form name=\"QueryForm\" method=\"get\" action=\"_gwcgi_\">\n" 744 744 << "<input type=\"hidden\" name=\"a\" value=\"q\">\n" 745 << "<input type=\"hidden\" name=\"site\" value=\"_cgiargsite _\"\n"745 << "<input type=\"hidden\" name=\"site\" value=\"_cgiargsiteAttrsafe_\"\n" 746 746 << "<input type=\"hidden\" name=\"e\" value=\"_compressedoptions_\">\n" 747 747 << "<input type=\"hidden\" name=\"ccp\" value=\"1\">\n" … … 1390 1390 decode_cgi_arg (compressedoptions); 1391 1391 if (args["w"] == "utf-8") { // if the encoding was utf-8, then compressed options was utf-8, and we need unicode. 1392 // if encoding wasn't utf-8, then compressed op otions may be screwed up, but seems to work for 8 bit encodings?1392 // if encoding wasn't utf-8, then compressed options may be screwed up, but seems to work for 8 bit encodings? 1393 1393 compressedoptions = to_uni(compressedoptions); 1394 1394 } -
main/trunk/greenstone2/runtime-src/src/recpt/rssaction.cpp
r28899 r28911 68 68 << "<channel>\n" 69 69 << " <title>_collectionname_</title>\n" 70 << " <link>_httpdomain __httppageabout_</link>\n"70 << " <link>_httpdomainHtmlsafe__httppageabout_</link>\n" 71 71 << " <description>_collectionextra_</description>\n" 72 72 << " <language>_cgiarglHtmlsafe_</language>\n" … … 79 79 << " <title>_collectionname_</title>\n" 80 80 << " <url>_iconcollection_</url>\n" 81 << " <link>_httpdomain __httppageabout_</link>\n"81 << " <link>_httpdomainHtmlsafe__httppageabout_</link>\n" 82 82 << " <description>_collectionextra_</description>\n" 83 83 << "</image>\n"; … … 125 125 126 126 if(!args["hostname"].empty()) { 127 disp.setmacro("httpdomain", "Global", "http://" + encodeForURL(args["hostname"])); 127 disp.setmacro("httpdomain", "Global", "http://" + args["hostname"]); 128 disp.setmacro("httpdomainHtmlsafe", "Global", "http://" + encodeForHTML(args["hostname"])); 128 129 } 129 130 else { // we shouldn't have to get here 130 disp.setmacro("httpdomain", "Global", "http://localhost:8282"); // the default used in zextra.dm. (Could perhaps default this to localhost too) 131 text_t default_domain = "http://localhost:8282"; 132 disp.setmacro("httpdomain", "Global", default_domain); // the default used in zextra.dm. (Could perhaps default this to localhost too) 133 disp.setmacro("httpdomain", "Global", encodeForHTML(default_domain)); 131 134 } 132 135 } -
main/trunk/greenstone2/runtime-src/src/recpt/statusaction.cpp
r28899 r28911 786 786 << "<pre>\n"; 787 787 788 text_t logcontent = file_tail (logfilename, 100, 1500); 789 788 790 // note that we're expecting lines to be no more than 1500 characters on 789 791 // average - should fix this file_tail() thing sometime 790 textout << outconvert << file_tail (logfilename, 100, 1500);792 textout << outconvert << encodeForHTML(logcontent); 791 793 792 794 textout << outconvert << disp << "</pre>\n"
Note:
See TracChangeset
for help on using the changeset viewer.