]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 318: fix sendfax from crashing when the to-name includes "#"
authorLee Howard <faxguy@howardsilvan.com>
Tue, 27 Sep 2005 19:44:04 +0000 (19:44 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Tue, 27 Sep 2005 19:44:04 +0000 (19:44 +0000)
CHANGES
sendfax/sendfax.c++

diff --git a/CHANGES b/CHANGES
index d811ab0add39c27c864bfffe6963994d652dfe28..39104d131fc389807b9f2f601ea3ea4deea9991c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@
 
 Changelog for HylaFAX
 
+* fix sendfax to allow "#" in the to-name (27 Sep 2005)
 * clean up page sizes and signalling (27 Sep 2005)
 * improve logging when a document is rejected (27 Sep 2005)
 * delay blocked jobs on failure (27 Sep 2005)
index 638aec83c74d1b2c8099331a684e4dffb70074a1..1506aab8f08b3a2f6c3cd6f82f2d7949e38a9e0c 100644 (file)
@@ -289,7 +289,7 @@ sendFaxApp::addDestination(const char* cp)
     fxStr subaddress;
     size_t sublen = 0;
     const char* ap = strchr(cp, '#');
-    if (ap) {
+    if (ap && !strchr(cp, '@')) {
        ap = ap+1;
        subaddress = fxStr(ap);
        sublen = strlen(subaddress) + 1;