Commit 8815343
committed
Do not validate for http:// URLs in elements and attributes that are definitiely part of a different namespace
Since the XML parser does not seem to have much support at all for namespaces, this fix is very ... raw in that it
only looks for a namespace delimintor `:` and if we find that in a element, mark it as ok. If we find it in an attribute, do not
check it.
This fixes #20931 parent 49043b7 commit 8815343
File tree
2 files changed
+11
-1
lines changed- tools/packchk
- src
- test/data/TestUrlHttps
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
0 commit comments