You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2020/02/16 19:13:02 UTC
[Bug 64147] New: apr_escape_shell() does not escape whitespace
https://bz.apache.org/bugzilla/show_bug.cgi?id=64147
Bug ID: 64147
Summary: apr_escape_shell() does not escape whitespace
Product: APR
Version: HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: APR
Assignee: bugs@apr.apache.org
Reporter: jamessan@jamessan.com
Target Milestone: ---
While trying to fix an issue in svn's invocation of an editor
(https://lists.apache.org/thread.html/ra13cf8823fde4066b6b0bade0ce43dd0ee19e0a5be4082b786c3e0ff%40%3Ccommits.subversion.apache.org%3E),
I ran across the fact that apr_escape_shell() doesn't escape spaces or tabs.
Given that whitespace is one of the most common problematic character classess
in shell, I was a bit surprised by this.
Is this an oversight or intentional behavior? There's not much guidance in the
documentation about what is expected to be escaped. I'm currently working
around this by manually escaping whitespace after calling apr_pescape_shell(),
but that seems suboptimal.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org