More correct way of adding PATH_INFO to a URL
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 2 Jul 2010 20:26:34 +0000 (14:26 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 2 Jul 2010 20:26:34 +0000 (14:26 -0600)
imp/templates/dimp/chunks/compose.php

index ec33c30..1dd4859 100644 (file)
@@ -19,9 +19,12 @@ $save_attach = $GLOBALS['prefs']->getValue('save_attachments');
 /* Determine if compose mode is disabled. */
 $compose_disable = !IMP::canCompose();
 
+$compose_link = Horde::getServiceLink('ajax', 'imp');
+$compose_link->pathInfo = 'addAttachment';
+
 ?>
 <?php if (!$redirect): ?>
-<form id="compose" name="compose" enctype="multipart/form-data" action="<?php echo Horde::getServiceLink('ajax', 'imp') ?>addAttachment" method="post" target="submit_frame">
+<form id="compose" name="compose" enctype="multipart/form-data" action="<?php echo $compose_link ?>" method="post" target="submit_frame">
 <?php echo Horde_Util::formInput() ?>
 <input type="hidden" id="last_identity" name="last_identity" value="<?php echo (int)$selected_identity ?>" />
 <input type="hidden" id="html" name="html" value="<?php echo intval($rte && $compose_html) ?>" />