1
showcase17
XOOPS_URL is not included in your REFERER
  • 2007/3/1 21:02

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


when a member is trying to post some images on my site (version 2.0.16) she gets this error: XOOPS_URL is not included in your REFERER

I can upload

Can someone explain what this is and how can I fix it?
- To Explore and Discover -

2
JMorris
Re: XOOPS_URL is not included in your REFERER
  • 2007/3/2 1:18

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


showcase17,

What module is being used to upload images?
Is the user using the default image manager to upload images?
What version of PHP, Apache and MySQL is your site hosted on?
Do you have any debug output that can help us nail down the root of the problem?

Thanks!

JM
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
showcase17
Re: XOOPS_URL is not included in your REFERER
  • 2007/3/4 1:52

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


Uhm yep, that would have been smart to tell JM (my fault):

Module: myalbum
PHP version: 4.4.4
Database: MySQL 4.1.21
Server OS: Linux 2.6.9-42.0.3.ELsmp
No debug output
Image manager: ImageMagick

Could this be a firewall problem? Others don't have this problem...

THX allready!
- To Explore and Discover -

4
showcase17
Re: XOOPS_URL is not included in your REFERER
  • 2007/3/13 10:13

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


No one?
- To Explore and Discover -

5
xgarb
Re: XOOPS_URL is not included in your REFERER
  • 2007/5/17 9:17

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Try altering /class/xoopssecurity.php

/**
    * Check the user agent's HTTP REFERER against XOOPS_URL
    *
    * @param int $docheck 0 to not check the referer (used with XML-RPC), 1 to actively check it
    *
    * @return bool
    **/
    
function checkReferer($docheck=1)
    {
        
$ref xoops_getenv('HTTP_REFERER');
        if (
$docheck == 0) {
            return 
true;
        }
        if (
$ref == '') {
            return 
true//was false
        
}
        if (
strpos($refXOOPS_URL) !== ) {
            return 
false;
        }
        return 
true;
    }


see this https://xoops.org/modules/smartfaq/faq.php?faqid=310 and this for more info https://xoops.org/modules/smartfaq/faq.php?faqid=9

Login

Who's Online

275 user(s) are online (165 user(s) are browsing Support Forums)


Members: 1


Guests: 274


Mamba,

more...

Donat-O-Meter

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

Latest GitHub Commits