Author: lucaa
Date: 2008-02-06 19:04:37 +0100 (Wed, 06 Feb 2008)
New Revision: 7320

Modified:
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/SendPressReviewEmail
Log:
XWATCH-13: Allow to send a press review by email

* fixed parameters encoding when passing them to PressReview from 
SendPressReviewEmail.




Modified: 
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/SendPressReviewEmail
===================================================================
--- 
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/SendPressReviewEmail
     2008-02-06 17:58:22 UTC (rev 7319)
+++ 
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/SendPressReviewEmail
     2008-02-06 18:04:37 UTC (rev 7320)
@@ -80,9 +80,9 @@
     if (!(par.key.equals("address") || par.key.equals("content") || 
par.key.equals("subject"))) {
       //just perfect to pass further
       if (par.value instanceof String) {
-        url += "&" + par.key + "=" + par.value;
+        url += "&" + par.key + "=" + xwiki.getURLEncoded(par.value);
       } else {
-        url += "&" + par.key + "=" + par.value[0];        
+        url += "&" + par.key + "=" + xwiki.getURLEncoded(par.value[0]);    
    
       }
     }
   }

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to