HNHacker News
TopNewBestAskShowJobs

erdbeerkaese

59 karma · joined November 30, 2015

submissionscomments
erdbeerkaese··on URL to PDF Microservice
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.

erdbeerkaese··on GNU Coreutils Gotchas
Another way:

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