summaryrefslogtreecommitdiff
path: root/net/kdenetwork4/patches/patch-bc
blob: b74f15a4d3a48029e95c5c5e44bfc51dc6203c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-bc,v 1.1 2010/05/16 21:21:39 markd Exp $

--- kget/ui/metalinkcreator/metalinker.h.orig	2010-01-31 19:33:11.000000000 +0000
+++ kget/ui/metalinkcreator/metalinker.h
@@ -259,6 +259,14 @@ class File
         KIO::filesize_t size;
         CommonData data;
         Resources resources;
+
+    private:
+        /**
+         * Controlls if the name attribute is valid, i.e. it is not empty and
+         * does not contain any directory traversal directives or information,
+         * as described in the Metalink 4.0 specification 4.1.2.1.
+         */
+        bool isValidNameAttribute() const;
 };
 
 class Files