Better HN
topnewbestaskshowjobs
Log inSign up

erdbeerkaese

59 karma · joined Nov 30, 2015 (11y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

Unfortunately, the "sensible defaults" don't seem to check input URLs correctly and allow file:// URLs.

Just try ?url=file:///etc/passwd on the demo instance.

That seems to be a quite common issue with services like this built on generic libraries.

comment 11y ago · link · parent

Another way:

  while read line ; do basename "$line" ; done < a.txt