On Tue, 23 May 2000, Kenneth Lee wrote:
> When I pass an undef (or "", maybe) to Apache::Util->unescape_uri_info
> it gives me segfault.
> Any idea?
i'm surprised this hasn't bitten anybody before. thanks for the
report, patch below.
--- src/modules/perl/Apache.xs 2000/04/21 06:03:52 1.96
+++ src/modules/perl/Apache.xs 2000/05/23 18:06:21
@@ -668,6 +672,10 @@
CODE:
register char * trans = url ;
char digit ;
+
+ if (!url || !*url) {
+ XSRETURN_UNDEF;
+ }
RETVAL = url;
- Apache::Util gives segfault Kenneth Lee
- Doug MacEachern
