apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 64147] New: apr_escape_shell() does not escape whitespace
Date Sun, 16 Feb 2020 19:13:02 GMT

            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
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

View raw message