[asterisk-commits] dvossel: trunk r233611 - /trunk/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 7 17:28:55 CST 2009


Author: dvossel
Date: Mon Dec  7 17:28:51 2009
New Revision: 233611

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=233611
Log:
fixes incorrect logic in ast_uri_encode

issue #16299

Modified:
    trunk/main/utils.c

Modified: trunk/main/utils.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/utils.c?view=diff&rev=233611&r1=233610&r2=233611
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Mon Dec  7 17:28:51 2009
@@ -392,7 +392,7 @@
 
 	/* If there's no characters to convert, just go through and don't do anything */
 	while (*ptr) {
-		if ((*ptr < 32 || (unsigned char) *ptr) > 127 || (doreserved && strchr(reserved, *ptr)) ) {
+		if ((*ptr < 32) || (doreserved && strchr(reserved, *ptr))) {
 			/* Oops, we need to start working here */
 			if (!buf) {
 				buf = outbuf;




More information about the asterisk-commits mailing list