* implement U escaper in StrBufAppendTemplate it was missing (*ups*)
authorWilfried Göesgens <willi@citadel.org>
Tue, 3 Mar 2009 22:39:20 +0000 (22:39 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 3 Mar 2009 22:39:20 +0000 (22:39 +0000)
* use right escaper for subjects in editors

webcit/static/t/edit_message.html
webcit/subst.c

index b33c7e60485466bcba1f8efae6f3318148f28771..9bcc507553b062fcb35e65475eb131650fb613b2 100644 (file)
@@ -74,7 +74,7 @@
       <??("COND:SUBST", 7, "SUBJREQUIRED")><?_("Subject (optional):")><??("X", 7)>
   </label></th>
   <td colspan="2">
-    <input type="text" name="subject" id="subject_id" value="<?BSTR("subject", "U")>" size=45 maxlength=70>
+    <input type="text" name="subject" id="subject_id" value="<?BSTR("subject", "H")>" size=45 maxlength=70>
   </td>
 </tr>
 <tr><td colspan="3">
index 6848f58d04fb9b386886fbf4eee87a3931b79c60..19049c531ad6d5a0431e928bb72ff5810643dcc2 100644 (file)
@@ -1017,8 +1017,11 @@ void StrBufAppendTemplate(StrBuf *Target,
                StrEscAppend(Target, Source, NULL, 0, 0);
                break;
        case 'J':
-         StrECMAEscAppend(Target, Source, NULL);
+               StrECMAEscAppend(Target, Source, NULL);
          break;
+       case 'U':
+               StrBufUrlescAppend(Target, Source, NULL);
+               break;
        default:
                StrBufAppendBuf(Target, Source, 0);
        }