Recent Topics

1 Feb 01, 2006 00:09    

Hello I have following problema:"found a URL invalid". Use b2evolution 1,6 alpha. The truth that not like solving it. I am inexperienced in this, could somebody help me. Thanks
---------------------------
Hola. tengo el siguiente problema:"Se ha encontrado una URL invalida". Uso b2evolution 1.6 alpha. La verdad que no se como solucionarlo. Soy novato en esto, podría alguien ayudarme. Gracias

3 Feb 02, 2006 22:41

Please, Here or in the Section in Spanish, Thanks

4 Feb 03, 2006 21:57

Please, somebody can help, with this of the URL invalid. Post does not allow me to record none that includes URL, always the error message: "URL INVALIDAS". Thanks

5 Feb 03, 2006 22:03

You still have not answered my question:

What were you trying to post?

What specific code did you put in? Copy and paste it so we can see exactly what the code is. Without that I would just have to guess.

6 Feb 04, 2006 02:32

Pardon, this is what I incorporate in post

Fuentes:
<ul>
<li><a href="http://www.cosas.com/Index.aspx?txtBuscador=ampuero&amp;id_tipo=1329&amp;id_tema=2022&amp;IDDoc=1049559">Plaza, Catalina. Roberto Ampuero : “Nunca me ha interesado el mundillo literario”. Cosas. N° 741. 18 de Febrero de 2005.</a></li>
<li><a href="http://www.lacasaazul.org/Roberto_Ampuero_Entrevista_Belkis_Cuza.html">Cuza Malé, Belkis. Roberto Ampuero, Los amantes de Estocolmo, y más. Linden Lane Magazine. Volumenes 5/6, Otoño-Invierno, 2004.</a></li>
<li><a href="http://lidersanantonio.cl/prontus4_nots/antialone.html?page=http://lidersanantonio.cl/prontus4_noticias/site/artic/20041219/pags/20041219023133.html">Olivares, Viviana. La nacionalización del género policial. Diario El Líder de San Antonio. Domingo 19 de diciembre de 2004.</a></li>
<li><a href="http://www.diarioladiscusion.cl/?control=notisegundo&amp;id_noticia_p=10&amp;fecha=19-02-2005">Araya G. , Juan Gabriel. Halcones de La Noche. La Discusión. Chillán. Domingo 9 de enero de 2005.</a></li>
</ul>

Thanks

7 Feb 04, 2006 06:39

arubio,

hola ... este es nuevo, pero es mismo a "hack" [url=http://forums.b2evolution.net/viewtopic.php?t=5291]por DAWN[/url].

It tells you more information regarding WHAT the problem might be. It is a core hack for the /evocore/_misc.funcs.php file. Replace the "validate-url" function with the following:

function validate_url( $url, & $allowed_uri_scheme )
{
	global $debug, $Debuglog;
	global $blog, $current_User; // stk mod
	
	if ( isset( $current_User ) and $current_User->check_perm( 'blog_post_statuses', 'any', false, $blog ) ) return;

	if( empty($url) )
	{ // Empty URL, no problem
		return false;
	}

	// minimum length: http://az.fr/
	if( strlen($url) < 13 )
	{ // URL too short!
		$Debuglog->add( 'URL &laquo;'.$url.';&raquo; is too short!', 'error' );
		// ----------------------------------------------------------------
		// return T_('Invalid URL');                             // orig
		return T_('<strong>'.$url.'</strong> is too short ');    // stk mod
		// ----------------------------------------------------------------
	}

	/* if( ! preg_match('|^            # start
		([a-z][a-z0-9+.\-]*):[0-9]*      # scheme
		//                               # authority absolute URLs only
		[a-z0-9][a-z0-9~+.\-_,:;/\\\\*]* # Don t allow anything too funky like entities
		([?#][a-z0-9~+.\-_,:;/\\\\%&=?#*\ \[\]]*)?
		$|ix', $url, $matches) ) */
		
	{ // Cannot vaidate URL structure
		$Debuglog->add( 'URL &laquo;'.$url.';&raquo; does not match url pattern!', 'error' );
		// -------------------------------------------------------------------
		// return T_('Invalid URL');                                // orig
		return T_('Found Invalid URL - <strong>'.$url.'</strong>'); // stk mod
		// -------------------------------------------------------------------
	}

	$scheme = strtolower($matches[1]);
	if( !in_array( $scheme, $allowed_uri_scheme ) )
	{ // Scheme not allowed
	  // -------------------------------------------------------------------------
		// return T_('URI scheme not allowed');                           // orig
		return T_('scheme not allowed - <strong>'.$scheme.'</strong>');   // stk mod
		// -------------------------------------------------------------------------
	}

	// Search for blocked URLs:
	if( $block = antispam_check($url) )
	{
		if( $debug ) return 'Url refused. Debug info: blacklisted word: ['.$block.']';
		// ----------------------------------------------------------------------------
		// return T_('URL not allowed');                                     // orig
		return T_('blocked by anti-spam -	URL: <strong>'.$url.'</strong>
		contains: <strong>"'.$block.'"</strong>');                           // stk mod
		// ----------------------------------------------------------------------------
	}

	return false; // OK
}

It should tell you (more specifically) WHAT the problem is.

Hope this helps.

8 Feb 04, 2006 14:58

arubio, I was able to post all of that without any errors. Install stk's hack to see which part of it is giving you trouble. Or, if you don't want to do that, then try posting that stuff one line at a time. That will help you see where the error is.

Also, what version are you using?

9 Feb 04, 2006 18:35

I think in his first post, he said he was using "v1.6 alpha" ;)

(The hack is for v1.6 anyway ... if anyone wants it for an earlier version, use the DAWN link above)

10 Feb 04, 2006 18:37

Do you expect me to actually read what people say before I try to answer their question? :oops:

I was able to post that text/code in my 0.9.1 install and in my 1.7 install.

11 Feb 04, 2006 19:16

lol ... @reading AND @posting

actually, that would be as far back as you can go with it, b/c the function name CHANGED in DAWN (0.9.1) to "validate_url" from something else (don't remember, something like "url_check" ... )

Heck ... you probably could replace the old one with this one too, and it would work ... just be certain to leave the function name the same.

( I usually only post the changes, but it was easier to post the whole function, so I did :p )

Of course ... by posting it in Dawn, b/c the REGEX changed in Phoenix, you'd be getting a much more strict URL checker. ;)

12 Feb 07, 2006 22:02

Thanks to all, solve to the problem thanks to the aid offered by blueyed. It was very simple but for the non-initiates they become unsalvable.

bad URL http://www.mysite.com/my blog/Name Last Name
good URL http://www.mysite.com/my blog/Name%20Last%20Name

Thanks
----------------------------------
Gracias a todos, solucione el problema gracias a la ayuda brindada por blueyed. Era muy simple pero para los no-iniciados se tornan insalvable.

url mala http://www.misitio.com/mi blog/Nombre Apellido
url buena http://www.misitio.com/mi blog/Nombre%20Apellido

Gracias


Form is loading...