Commit Graph

6 Commits

Author SHA1 Message Date
Friedrich Weber
8a1c194740 mobile ui: API2Request: ensure that response.htmlStatus is html-encoded
`response.htmlStatus` is used to display error messages to the user.
Hence, make sure that HTML in the error message is properly encoded.
`API2Request` has two codepaths setting `response.htmlStatus`:

- in the `success` callback, htmlStatus is assigned the result of
  `extractRequestError`, which already encodes server-provided
  strings.

- in the `failure` callback, where this patch adds a missing
  htmlEncode.

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
2025-04-08 17:37:54 +02:00
Friedrich Weber
a8a0a53b16 ui: mobile: add some missing htmlEncodes
to avoid interpreting HTML in task information or VM configuration.

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
2025-04-04 15:26:23 +02:00
Thomas Lamprecht
b67c450126 ui: mobile: add Bulgarian as available language to copy of Utils
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-14 22:23:04 +01:00
Dominik Csapak
5d24b7d37e fix #5734: provide missing methods for Proxmox.Utils for mobile ui
since the mobile ui shares the Utils code with the desktop web ui, (but
not the proxmox-widget-toolkit) all methods used in constructors, etc.
there must be available in the mobile ui too.

We don't have any notification configuration options in the mobile ui,
and AFAIK we don't plan to add those there, so we can just implement
stub functions. This way the Utils constructor can proceed without
errors, fixing loading the mobile ui.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-09-25 14:49:21 +02:00
Christian Ebner
347f88fecd website: update external links to www.proxmox.com
During the redesign of www.proxmox.com the menu structure and therefore
some url changed. Update the external link in order to avoid an
unneccessary redirect

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2023-08-23 10:09:25 +02:00
Thomas Lamprecht
0947b5c36f mobile ui: statically import widget toolkit
as loading the whole wtk breaks the mobile ui and is
- not always trivial to fix
- a sisyphean task (in the future)
- we don't check this often, so breakage is likely to go unnoticed

I.e., just much simple to freeze this also in time..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-28 19:19:55 +02:00