[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Webmail: ensure that PDF download outputs a file ending with `.pdf` not...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68ee459c46a9b_2ce0e7062311@gitlab-sidekiq-low-urgency-cpu-bound-v2-65f6458-d4q27.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
53acffda by Merci Jacob at 2025-10-14T12:35:48+00:00
[FIX] Webmail: ensure that PDF download outputs a file ending with `.pdf` not `.html` on Android devices, and the browser loading indicator is hidden when the download has started
---
* [FIX] Webmail: ensure that PDF download output a file ending with `.pdf` not `.html` on android devices and the browser loading indicator hidden when the download has started

See merge request tikiwiki/tiki!8772

- - - - -


2 changed files:

- lib/cypht/modules/tiki/site.js
- tiki-webmail.php


Changes:

=====================================
lib/cypht/modules/tiki/site.js
=====================================
@@ -174,7 +174,8 @@ var tiki_event_message_headers_actions = function(){
 var non_ajax_submit = function(action, method, values) {
     var form = $('<form/>', {
         action: action,
-        method: method
+        method: method,
+        target: '_blank'
     });
     $.each(values, function() {
         form.append($('<input/>', {
@@ -184,6 +185,7 @@ var non_ajax_submit = function(action, method, values) {
         }));
     });
     form.appendTo('body').trigger("submit");
+    form.remove();
 };
 
 var tiki_Hm_Ajax_Request = function() {


=====================================
tiki-webmail.php
=====================================
@@ -143,6 +143,7 @@ if (isset($_POST['display']) && $_POST['display'] == 'pdf') {
         header('Content-Length: ' . $length);
         TikiLib::lib('header')->setXRobotsTag($robots);
         echo $pdf;
+        exit;
     }
 }
 



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/53acffdaefa8cb8ad4ed3c1ce412d851a241260d

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/53acffdaefa8cb8ad4ed3c1ce412d851a241260d
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.