Recent Topics

1 Jun 09, 2006 03:38    

Hello,
I seem to have difficulties putting links like this
http://www.amazon.de/exec/obidos/ASIN/3499614898/ref=nosim/73x460n-21?dev-t=D2WMCOIPS9D14E
(which I wanted to use for test purposes)
in the URL field of my posting screen in the back office (anymore). Trying to put above link gives me an "invalid ULR please go back and change" screen.

If I mutilate the URL to be
http://www.amazon.de/exec/obidos/ASIN/3499614898/
b2evo gulps it down just fine, therefore my suspicion, that something rotten is in the portion
"/ref=nosim/73x460n-21?dev-t=D2WMCOIPS9D14E"
but I can't for the life of me figure out what it might be ..

I THINK this pickiness just MAY have something to do with my having pulled the antipam-list update.

Anybody else experiencing similar problem/s?!
Any ideas how to get out of this

thx! and good night. .oO(zzzZZZZzzz)
'lex, dead as a log

2 Jun 09, 2006 12:17

OK, so I have been toying a little with the URL,
it SEEMS that the offending bit ist the "ref=" in the URL.

I have entered the URL time and time again, letting it grow a portion of the orginal longer every time, like
http://www.amazon.de/ check
http://www.amazon.de/exec/ check
http://www.amazon.de/exec/obidos/ check
http://www.amazon.de/exec/obidos/ASIN/ check
http://www.amazon.de/exec/obidos/ASIN/3821838981/ check
http://www.amazon.de/exec/obidos/ASIN/3821838981/ref=nosim/
*meeep!* ;) aha. Edging backwards I found that
http://www.amazon.de/exec/obidos/ASIN/3821838981/ref is still accepted while
http://www.amazon.de/exec/obidos/ASIN/3821838981/ref=
is not.
So it must be this. /me thinks.

Now what?
I'm pretty dependent on B2Evo to work with amazon ...
Looking forward to hearing your thoughts,

'lex

3 Jun 09, 2006 13:07

admin/edit_actions.php, comment out the two sections that look like this ( approx line 102+ and line 213+ ) and see if it cures your problem :-

		if( $error = validate_url( $post_url, $allowed_uri_scheme ) )
		{
			errors_add( T_('Supplied URL is invalid: ').$error );
		}

¥
*edit*
Totally off topic, Thanks for the link, but I've moved my spamtrap to http://www.innervisions.org.uk/babbles/spamtrap.php

4 Jun 09, 2006 14:28

Hey, Yabba, thanks, will have to check that out later in the day.

Uh, re your line re the link: pls clarify? I'm afraid I can't really follow of the of my head, sorry.

:) L8rs,

'lex

5 Jun 09, 2006 15:02

lol, you have a link to my spamtrap in your linkblog ;)

¥

6 Jun 09, 2006 15:59

I'll be damned! I thought I was building my thing in hiding!!! :-D Oh, wait a minit .. but I AM! ... you are refering to the _other_ site heh. Would you believe it :D _Totally_ forgot about that one ... I'm busily preparing my leave there (since the original idea, co blogging with 3 other people, di'nt work out) - which is why I'm asking so many noobish questions _here_. I'll see to that link l8r 2day :)

[Off: Good grief, I'll have to cross town home. All the soccer-mania! Help!!]

7 Jun 10, 2006 01:53

Hello Yabba, ok, i did the changes at the two suggested locations of edit_actions.php and the "Link to URL" field is now accepted without complaint. If I have the same URL in the text field of the post I still get a no go.

I'll skim the edit_actions if I find some other instance of the portion you pointed me to. If you have other suggestions in the meantime please let me know! :) thx! 'lex

8 Jun 10, 2006 01:59

hu, int'resting!:
the text field seems to allow the URL if I just post it straigt in (without enclosing a href tag), hmmmm ... maybe I just quirked up typing? Lemme recheck .. No, it's true!

If I put


<a href="http://www.amazon.de/exec/obidos/ASIN/3499614898/ref=nosim/73x460n-21?dev-t=D2WMCOIPS9D14E">test</a>


I get an invalid URL complaint and can't save. However, if I just put

http://www.amazon.de/exec/obidos/ASIN/3499614898/ref=nosim/73x460n-21?dev-t=D2WMCOIPS9D14E

it's accepted and saved without complaint.
Beats me. Now what?

Thx! 'lex[/code]

9 Jun 11, 2006 11:21

Crack open b2evocore/_functions.php, find this section of code (approx line 180+)

	if( $use_html_checker )
	{	// Check the code:
		if( ! $is_comment )
		{
			$checker = & new SafeHtmlChecker( $allowed_tags, $allowed_attribues,
																			$uri_attrs, $allowed_uri_scheme, $encoding );
		}
		else
		{
			$checker = & new SafeHtmlChecker( $comments_allowed_tags, $comments_allowed_attribues,
																			$uri_attrs, $comments_allowed_uri_scheme, $encoding );
		}
	
		$checker->check( $content );
	}

and change it to :-

	Global $current_User;

	if ( !isset( $current_User ) or $current_User->Group->ID != 1 )
	{ // not an admin user
		if( $use_html_checker )
		{	// Check the code:
			if( ! $is_comment )
			{
				$checker = & new SafeHtmlChecker( $allowed_tags, $allowed_attribues,
																				$uri_attrs, $allowed_uri_scheme, $encoding );
			}
			else
			{
				$checker = & new SafeHtmlChecker( $comments_allowed_tags, $comments_allowed_attribues,
																				$uri_attrs, $comments_allowed_uri_scheme, $encoding );
			}
	
			$checker->check( $content );
		}
	}

¥

10 Jun 11, 2006 23:49

Hey, Yabba! That did it! Cool! Thanks! :-)

12 Jun 12, 2006 15:35

Moving to "general..." forum since it's not a spam thing.


Form is loading...