From 107e913de6a13c153534ddc46dfa49d4cc43847d Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 5 Oct 2001 15:57:43 +0000 Subject: [PATCH] Fix copyright. Guarantee regular-expression is loaded. Fix bug in URL:SUBSTRING-ENCODED?. --- v7/src/runtime/url.scm | 43 ++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/v7/src/runtime/url.scm b/v7/src/runtime/url.scm index db461a84a..fd4126cf7 100644 --- a/v7/src/runtime/url.scm +++ b/v7/src/runtime/url.scm @@ -1,26 +1,29 @@ -;;; -*-Scheme-*- -;;; -;;; $Id: url.scm,v 1.8 2000/07/02 05:09:21 cph Exp $ -;;; -;;; Copyright (c) 2000 Massachusetts Institute of Technology -;;; -;;; This program is free software; you can redistribute it and/or -;;; modify it under the terms of the GNU General Public License as -;;; published by the Free Software Foundation; either version 2 of the -;;; License, or (at your option) any later version. -;;; -;;; This program is distributed in the hope that it will be useful, -;;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -;;; General Public License for more details. -;;; -;;; You should have received a copy of the GNU General Public License -;;; along with this program; if not, write to the Free Software -;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#| -*-Scheme-*- + +$Id: url.scm,v 1.9 2001/10/05 15:57:43 cph Exp $ + +Copyright (c) 2000, 2001 Massachusetts Institute of Technology + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. +|# ;;;; URL Encoding (declare (usual-integrations)) +(load-option 'REGULAR-EXPRESSION) (define url:char-set:safe (string->char-set "$-_.+")) (define url:char-set:extra (string->char-set "!*'(),")) @@ -80,7 +83,7 @@ (url:decode-substring string 0 (string-length string))) (define url:substring-encoded? - (let ((pattern (rexp-compile url:rexp:xchar))) + (let ((pattern (rexp-compile (rexp* url:rexp:xchar)))) (lambda (string start end) (let ((regs (re-substring-match pattern string start end))) (and regs -- 2.25.1