[Pkg-citadel-commit] r265 - in webcit/tags: . 7.37-dfsg-7/debian 7.37-dfsg-7/debian/patches

meskes at alioth.debian.org meskes at alioth.debian.org
Wed Mar 11 09:23:52 UTC 2009


Author: meskes
Date: 2009-03-11 09:23:52 +0000 (Wed, 11 Mar 2009)
New Revision: 265

Added:
   webcit/tags/7.37-dfsg-7/
   webcit/tags/7.37-dfsg-7/debian/patches/r7104..7107_remove_unneeded_parameters.diff
Modified:
   webcit/tags/7.37-dfsg-7/debian/changelog
   webcit/tags/7.37-dfsg-7/debian/patches/series
Log:
Prepare 7.37-dfsg-7 upload for stable.


Copied: webcit/tags/7.37-dfsg-7 (from rev 264, webcit/tags/7.37-dfsg-6)

Modified: webcit/tags/7.37-dfsg-7/debian/changelog
===================================================================
--- webcit/tags/7.37-dfsg-6/debian/changelog	2009-03-10 16:00:20 UTC (rev 264)
+++ webcit/tags/7.37-dfsg-7/debian/changelog	2009-03-11 09:23:52 UTC (rev 265)
@@ -1,3 +1,9 @@
+webcit (7.37-dfsg-7) stable-security; urgency=high
+
+  * r7104..7107 remove unneeded parameters to embeddable calendar.
+
+ -- Michael Meskes <meskes at debian.org>  Wed, 11 Mar 2009 10:18:31 +0100
+
 webcit (7.37-dfsg-6) unstable; urgency=medium
 
   * Added missing build dependency on libssl-dev causing citadel-webcit to not

Added: webcit/tags/7.37-dfsg-7/debian/patches/r7104..7107_remove_unneeded_parameters.diff
===================================================================
--- webcit/tags/7.37-dfsg-7/debian/patches/r7104..7107_remove_unneeded_parameters.diff	                        (rev 0)
+++ webcit/tags/7.37-dfsg-7/debian/patches/r7104..7107_remove_unneeded_parameters.diff	2009-03-11 09:23:52 UTC (rev 265)
@@ -0,0 +1,92 @@
+Index: calendar_view.c
+===================================================================
+--- webcit-7.38/calendar_view.c	(revision 7107)
++++ webcit-7.38/calendar_view.c	(revision 7108)
+@@ -8,12 +8,12 @@
+ #include "webserver.h"
+ 
+ 
+-void embeddable_mini_calendar(int year, int month, char *urlformat)
++void embeddable_mini_calendar(int year, int month)
+ {
+ 	struct tm starting_tm;
+ 	struct tm tm;
+ 	time_t thetime;
+-	int i, len;
++	int i;
+ 	time_t previous_month;
+ 	time_t next_month;
+ 	time_t colheader_time;
+@@ -23,8 +23,7 @@
+ 	char weekstart_buf[16];
+ 	char url[256];
+ 	char div_id[256];
+-	char escaped_urlformat[256];
+-
++	
+ 	snprintf(div_id, sizeof div_id, "mini_calendar_%d", rand() );
+ 
+ 	/* Determine what day to start.
+@@ -103,7 +102,7 @@
+ 			}
+ 
+ 			if (tm.tm_mon == month-1) {
+-				snprintf(url, sizeof url, urlformat,
++				snprintf(url, sizeof url, "readfwd?calview=day&year=%d&month=%d&day=%d", 
+ 					tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday);
+ 				wprintf("<td><a href=\"%s\">%d</a></td>", url, tm.tm_mday);
+ 			}
+@@ -124,22 +123,16 @@
+ 	wprintf("</table>"			/** end of inner table */
+ 		"</div>\n");
+ 
+-	/* javascript for previous and next month */
+-	len = strlen(urlformat);
+-	for (i=0; i<len; ++i) {
+-		sprintf(&escaped_urlformat[i*2], "%02X", urlformat[i]);
+-	}
+-
+ 	wprintf("<script type=\"text/javascript\">							"
+ 		"	function minical_change_month(year, month) {					"
+ 		"		p = 'year=' + year + '&month=' + month					"
+-		"			+ '&urlformat=%s&r=' + CtdlRandomString();			"
++		"			+ '&r=' + CtdlRandomString();			                "
+ 		"		new Ajax.Updater('%s', 'mini_calendar', 				"
+ 		"			{ method: 'get', parameters: p, evalScripts: true } );		"
+ 		"	}										"
+ 		"</script>\n"
+ 		,
+-		escaped_urlformat, div_id
++		div_id
+ 		);
+ 
+ }
+@@ -148,18 +141,7 @@
+  * \brief  ajax embedder for the above mini calendar 
+  */
+ void ajax_mini_calendar(void) {
+-	char urlformat[256];
+-	int i, len;
+-	char *escaped_urlformat;
+-
+-	escaped_urlformat = bstr("urlformat");
+-        len = strlen(escaped_urlformat) * 2 ;
+-	for (i=0; i<len; ++i) {
+-		urlformat[i] = xtoi(&escaped_urlformat[i*2], 2);
+-		urlformat[i+1] = 0;
+-	}
+-
+-	embeddable_mini_calendar( ibstr("year"), ibstr("month"), urlformat );
++	embeddable_mini_calendar( ibstr("year"), ibstr("month"));
+ }
+ 
+ 
+@@ -1254,7 +1236,7 @@
+ 
+ 	/** Embed a mini month calendar in this space */
+ 	wprintf("<br />\n");
+-	embeddable_mini_calendar(year, month, "readfwd?calview=day&year=%d&month=%d&day=%d");
++	embeddable_mini_calendar(year, month);
+ 
+ 	wprintf("</font></center>\n");
+ 

Modified: webcit/tags/7.37-dfsg-7/debian/patches/series
===================================================================
--- webcit/tags/7.37-dfsg-6/debian/patches/series	2009-03-10 16:00:20 UTC (rev 264)
+++ webcit/tags/7.37-dfsg-7/debian/patches/series	2009-03-11 09:23:52 UTC (rev 265)
@@ -4,3 +4,4 @@
 r6443_fix_im_window_weakness.diff
 r6476_memleak_notes.diff
 r6563_fix_vcard_interoperability.diff
+r7104..7107_remove_unneeded_parameters.diff




More information about the Pkg-citadel-commit mailing list