aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-15 13:07:50 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-15 17:16:41 +0000
commitf92a30301a6ef4dd874df8842c922f26eb578469 (patch)
tree5a8d9ad3ff79e34665703c2d595d3e9166e66cf9
parentb94b0f6b912297e67ef5503b2c2d7b581aea89b9 (diff)
downloadnextcloud-server-f92a30301a6ef4dd874df8842c922f26eb578469.tar.gz
nextcloud-server-f92a30301a6ef4dd874df8842c922f26eb578469.zip
fix(BaseResponse): Cast XML element values to stringbackport/48013/stable28
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r--lib/private/AppFramework/OCS/BaseResponse.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/AppFramework/OCS/BaseResponse.php b/lib/private/AppFramework/OCS/BaseResponse.php
index 78bcc5586d3..4f460795e7f 100644
--- a/lib/private/AppFramework/OCS/BaseResponse.php
+++ b/lib/private/AppFramework/OCS/BaseResponse.php
@@ -163,8 +163,10 @@ abstract class BaseResponse extends Response {
$writer->startElement($k);
$this->toXML($v->jsonSerialize(), $writer);
$writer->endElement();
+ } elseif ($v === null) {
+ $writer->writeElement($k);
} else {
- $writer->writeElement($k, $v);
+ $writer->writeElement($k, (string)$v);
}
}
}
ght .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
OC.L10N.register(
    "files_sharing",
    {
    "Server to server sharing is not enabled on this server" : "Dijeljenje resursa s poslužitelja na poslužitelj s ovog poslužitelja nije omogućeno.",
    "Invalid or untrusted SSL certificate" : "Neispravna ili nepouzdana SSL potvrda",
    "Couldn't add remote share" : "Udaljeni zajednički resurs nije moguće dodati",
    "Shared with you" : "Podijeljeno s vama",
    "Shared with others" : "Podijeljeno s ostalima",
    "Shared by link" : "POdijeljeno putem veze",
    "Do you want to add the remote share {name} from {owner}@{remote}?" : "Želite li dodati udaljeni zajednički resurs {name} od {owner}@{remote}?",
    "Remote share" : "Udaljeni zajednički resurs (za raspodjelu)",
    "Remote share password" : "Lozinka za udaljeni zajednički resurs",
    "Cancel" : "Odustanite",
    "Add remote share" : "Dodajte udaljeni zajednički resurs",
    "Invalid ownCloud url" : "Neispravan ownCloud URL",
    "Share" : "Podijelite resurs",
    "Shared by" : "Podijeljeno od strane",
    "A file or folder has been <strong>shared</strong>" : "Datoteka ili mapa su <strong>podijeljeni</strong>",
    "You shared %1$s with %2$s" : "Podijelili ste %1$s s %2$s",
    "You shared %1$s with group %2$s" : "Podijelili ste %1$s s grupom %2$s",
    "%2$s shared %1$s with you" : "%2$s je %1$s podijelio s vama",
    "You shared %1$s via link" : "Podijelili ste %1$s putem veze",
    "Shares" : "Dijeljeni resursi",
    "This share is password-protected" : "Ovaj zajednički resurs je zaštićen lozinkom",
    "The password is wrong. Try again." : "Pogrešna lozinka. Pokušajte ponovno.",
    "Password" : "Lozinka",
    "No entries found in this folder" : "Zapis nije pronadjen u ovom direktorijumu ",
    "Name" : "Naziv",
    "Share time" : "Vrijeme dijeljenja",
    "Sorry, this link doesn’t seem to work anymore." : "Žao nam je, čini se da ova veza više ne radi.",
    "Reasons might be:" : "Mogući razlozi su:",
    "the item was removed" : "stavka je uklonjena",
    "the link expired" : "veza je istekla",
    "sharing is disabled" : "dijeljenje je onemogućeno",
    "For more info, please ask the person who sent this link." : "Za više informacija, molimo obratite se osobi koja je ovu vezu poslala.",
    "Add to your ownCloud" : "Dodajte svome ownCloud",
    "Download" : "Preuzmite",
    "Download %s" : "Preuzmite %s",
    "Direct link" : "Izravna veza"
},
"nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;");