miniblog.
← Back to all posts
Apr 7, 2014 at 15:38
After the separation of unicode and bytestrings in Python 3, I'm surprised that os.path.exists (and friends) accepts both b"/etc" and "/etc"
Wilfred Hughes
Related Posts
Nov 29, 2013 at 14:00
Brilliant discussion of unicode and bytestrings:
https://unspecified.wordpress.com/2012/04/19/the-importance-of-language-level-abstract-unicode-strings/
-- most languages get this wrong!
The importance of language-level abstract Unicode strings
Note: This article may not display properly if your browser has no font installed with some special Unicode characters. Unicode is a beautiful thing. Where in the past, we had to be content with te…
Wilfred Hughes
Shared words: unicode, bytestrings Score: 55.9
May 25, 2026 at 15:13
4
Go has an os.Root API that allows you to enforce all paths are subdirectories of a given root. It fixes users accessing foo/../../../etc/passwd and similar. Seems like a really nice solution for a relatively common problem.
Traversal-resistant file APIs - The Go Programming Language
New file access APIs in Go 1.24.
Wilfred Hughes
Shared words: os, path, etc Score: 48.8
Apr 17, 2017 at 21:06
Homograph attacks still exist in Unicode domains:
https://www.xudongz.com/blog/2017/idn-phishing/
(scary! Whitelist character sets by TLD?)
Phishing with Unicode Domains - Xudong Zheng
Vulnerability in Chrome, Firefox, and Opera makes users susceptible to phishing with Unicode domains
Wilfred Hughes
Shared words: unicode, exists Score: 33.2