Closed Bug 301458 Opened 19 years ago Closed 19 years ago

Move url_decode out of CGI.pl

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.21
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file, 1 obsolete file)

should go into Util.pm
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.22
Attached patch patch, v1 (obsolete) — Splinter Review
I forgot the POD docs in bug 301453 for check_email_syntax. Adding them here
together with url_decode.
Attachment #189910 - Flags: review?(mkanat)
Comment on attachment 189910 [details] [diff] [review]
patch, v1

  OK on inspection, but certain parts of the POD docs need to be fixed:

>@@ -408,6 +426,9 @@
>   # Cryptographic Functions
>   $crypted_password = bz_crypt($password);
> 
>+  # Functions for email syntax validation

  Just "validation functions" in general.

>@@ -630,3 +655,13 @@
> =end undocumented
> 
> =back
>+
>+=head2 Email syntax validation

  Same note here.

>+=item C<check_email_syntax($email)>
>+
>+Do a syntax checking for a legal email address.

  Note that the function actually throws a user error if the email syntax is
invalid.


  Also, the "url_decode" POD docs probably want to be more specific than "get
rid of," since that sounds like we just delete them.
Attachment #189910 - Flags: review?(mkanat) → review-
Attached patch patch, v2Splinter Review
If you have a better explanation for url_decode, please write it here and I
will do a copy and paste. ;)
Attachment #189910 - Attachment is obsolete: true
Attachment #189915 - Flags: review?(mkanat)
Comment on attachment 189915 [details] [diff] [review]
patch, v2

OK, except "an error is thrown" instead of "an error is returned."

I think that can be fixed on checkin, though. :-)
Attachment #189915 - Flags: review?(mkanat) → review+
Flags: approval?
Flags: approval? → approval+
Checking in CGI.pl;
/cvsroot/mozilla/webtools/bugzilla/CGI.pl,v  <--  CGI.pl
new revision: 1.249; previous revision: 1.248
done
Checking in query.cgi;
/cvsroot/mozilla/webtools/bugzilla/query.cgi,v  <--  query.cgi
new revision: 1.147; previous revision: 1.146
done
Checking in Bugzilla/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Util.pm,v  <--  Util.pm
new revision: 1.32; previous revision: 1.31
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: