Menu

#20 two small bugs

open
nobody
5
2003-02-20
2003-02-20
Anonymous
No

1. Found that newsletter_functions.php and
newsletter_display.php are using $nuke_url global
variable which is null (that makes subscribers to receive
a URL like /mod.php?
mod=newsletter&op=confirm&lid=1&email=new_subscrib
er@somedomain.com&code=....
instead correct
http://some.site.com/mod.php?
mod=newsletter&op=confirm&lid=1&email=new_subscrib
er@somedomain.com&code=....
Replaced all occurences of $nuke_url with global
$phpws_url and now it's ok

2. Found that every newsletter name gets a ' (simple
quote) appended. The reason is the ereg clean code
found in newsletter_admin.php (both nl_AddData and
nl_EditData functions):
[...]
$name = ereg_replace("\\'", "┤", $name);
$name = ereg_replace("'", "┤", $name);
[...]

Replaced this two lines with
$name = ereg_replace( "['\"\]", "", $name );
which cleans out every quotes (both " and ' ). Found this
hint on http://www.php.net/ereg_replace page.

Hope this helps.
Regards,
Silviu Petrescu
petrescs@yahoo.com

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.