mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 06:20:12 +01:00
Strip slashes from descriptions/labels etc.
This commit is contained in:
parent
88196e8b9b
commit
24da38c0f6
@ -68,9 +68,9 @@ function get_android_permissions_array($android_manifest_file_path, $android_str
|
||||
$descriptionString = ucfirst($descriptionStringObject->item(0)->nodeValue);
|
||||
}
|
||||
|
||||
$permissions[$node->nodeName][$name]['label'] = $labelString;
|
||||
$permissions[$node->nodeName][$name]['description'] = $descriptionString;
|
||||
$permissions[$node->nodeName][$name]['comment'] = str_replace(array("\r\n", "\r", "\n", "\t", ' '), '', $comment);
|
||||
$permissions[$node->nodeName][$name]['label'] = stripslashes($labelString);
|
||||
$permissions[$node->nodeName][$name]['description'] = stripslashes($descriptionString);
|
||||
$permissions[$node->nodeName][$name]['comment'] = stripslashes(str_replace(array("\r\n", "\r", "\n", "\t", ' '), '', $comment));
|
||||
|
||||
if($node->nodeName == 'permission') {
|
||||
$permissionGroupObject = $node->attributes->getNamedItem('permissionGroup');
|
||||
|
Loading…
Reference in New Issue
Block a user