From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,341ea6d4f1d28719 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.stueberl.de!newsgate.cistron.nl!skynet.be!newspost001!tjb!not-for-mail Date: Mon, 28 Feb 2005 18:29:31 +0100 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: need a little string hint... References: <1109606915.447479.184780@l41g2000cwc.googlegroups.com> <4223462d$0$30168$ba620e4c@news.skynet.be> <1109609391.989190.235510@f14g2000cwb.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <422354fb$0$14965$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: ad0b5167.news.skynet.be X-Trace: 1109611771 news.skynet.be 14965 81.243.63.49:4855 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:8537 Date: 2005-02-28T18:29:31+01:00 List-Id: Andre wrote: > Trim (String, Both) > > mferracini wrote: > >> mhh and how i can trim away the ' '? >> and what if the hostname contains a voluntary space at the end or at the beginning ? this may happen because the configuration file writer wanted spaces converted to "%20", or it may just happen because somebody mistyped the hostname in the configuration file. in any case, your solution prevent from taking the appropriate action since it removes the spaces... with all the security risks implied. -- rien