1
wcrwcr
Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 0:52

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi all

Those errors occurs since XOOPS 2052, and yep i already reported them to the core bug last year.

I?m getting some troubles trying to use the "Send to a friend" function on the mydownloads module.

What i get:

The url parsed on my mail client, on the message body is including an unwanted "& amp ;" charecter, leading me to an empty file. For instance:

http://www.mysite.com/modules/mydownloads/singlefile.php?cid=8&;lid=8

As a workaround I did a search and replace to all files of the mod replacing the "& amp ;" for just "&".

The most funny:
After the upload and module update, on my first attempt to use the function, It works pretty well, but in all the next times the error showed up again

However, with the mylinks module the same approach works very well, at least till now.

Any chance to be something with magic quotes off or on?

My php info shows me:

magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
==========================
Any chance to be something with the censorString function on XOOPS class?

As I?m not a coder i?m pretty lost, any help will be appreciated.

Thanks

2
brash
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 0:57

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I've run into a few issues with magic_quotes_gpc being turned on before, although not with character display from what I can recall. Worth a try though

3
wcrwcr
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 1:01

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Thanks for your reply brash.

I?m a bit afraid of messing some others things on my sites trying to turn magic quotes off, besides i?m not the server owner

Those sites are hosted on a shared host space

Did you notice those old bugs too?

4
brash
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 1:17

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Can't say I have. Give me 5...

5
brash
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 1:23

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


I get the same thing and I have magic_quotes off

6
wcrwcr
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 1:32

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


wow brash

It seems that nobody have friends since XOOPS 2052

There must be a fix, don?t you think so?

7
brash
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 1:52

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Found how to fix it, but it's not just in one spot is the problem. I'll see if I can get some time to patch and submit the files today. Can you post a link to the bug report you logged?

8
wcrwcr
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 2:24

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

Quote:
Found how to fix it

That?s great

Quote:
but it's not just in one spot is the problem


I knew it..... if we just search for the "& amp ; " on both modules we find a lot of files with those charecters.

Quote:
Can you post a link to the bug report you logged?


I must dig a bit, it?s been a long time.
I?ll search.

Hey brash thank u for the effort and help, that?s what make our community one of the best in the world

9
brash
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 2:33

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


No worries . If you have a decent text editor handy, you can try doing a search for 'mail_body' in all files in the mydownload and mylink modules. The offending strings follow this

10
wcrwcr
Re: Mydownloads & Mylinks Old bug (since 2052)
  • 2005/5/11 15:18

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

I found an ocurrence of the "mail_body" string only in 4 files of the mydownloads module: index.php, singlefile.php, viewcat.php and on the templates/mydownloads_downloads.html.

For instance, on the mydownloads_downlods.html:

<a target="_top" href="mailto:?subject=<{$down.mail_subject}>&body=<{$down.mail_body}>"><{$lang_tellafriend}></a>


But after the mail_body string mentioned I din?t see nothing like a "& amp ;" character. Please, remember that I replaced all ocurrencies of the "& amp ;" changing them to only "&".

So.......still lost
Thanks

Login

Who's Online

239 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits