From: cantor Date: Mon, 24 Aug 2009 19:23:52 +0000 (+0000) Subject: https://bugs.internet2.edu/jira/browse/CPPXT-38 X-Git-Tag: 1.4.1~197 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=9853ed1e1f3bb5b27ae14f21e0c399b262608d00;p=shibboleth%2Fxmltooling.git https://bugs.internet2.edu/jira/browse/CPPXT-38 git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@636 de75baf8-a10c-0410-a50a-987c0e22f00f --- diff --git a/xmltooling/util/URLEncoder.cpp b/xmltooling/util/URLEncoder.cpp index 633a6f2..d646251 100644 --- a/xmltooling/util/URLEncoder.cpp +++ b/xmltooling/util/URLEncoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2009 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ void URLEncoder::decode(char* s) const for(x=0,y=0;s[y];++x,++y) { - if((s[x] = s[y]) == '%') + if((s[x] = s[y]) == '%' && s[y+1] && s[y+2]) { s[x] = x2c(&s[y+1]); y+=2;