Recent Topics

1 Mar 15, 2008 18:57    

Hello, all.
# Excuse my poor English. :(

When an article is posted, the error message is shown like following:

Found invalid URL: Invalid URL format (http://r.gnavi.co.jp/b358700/).

I am afraid that regular expressions are wrong at "inc/_core/_url.funcs.php".
So, I made it correct.


*** _url.funcs.php.orig Mon Jan 21 10:35:24 2008
--- _url.funcs.php      Sun Mar 16 02:14:33 2008
***************
*** 88,96 ****
                        ([a-z][a-z0-9+.\-]*)             # scheme
                        ://                              # authorize absolute URLs only ( // not present in clsid: -- problem? ; mailto: handled above)
                        (\w+(:\w+)?@)?                   # username or username and password (optional)
!                       [a-z0-9]([a-z0-9\-])+            # Don t allow anything too funky like entities
                        \.                               # require at least 1 dot
!                       [a-z0-9]([a-z0-9.\-])+           # Don t allow anything too funky like entities
                        (:[0-9]+)?                       # optional port specification
                        ~ix', $url, $match) )
                { // Cannot validate URL structure
--- 88,96 ----
                        ([a-z][a-z0-9+.\-]*)             # scheme
                        ://                              # authorize absolute URLs only ( // not present in clsid: -- problem? ; mailto: handled above)
                        (\w+(:\w+)?@)?                   # username or username and password (optional)
!                       ([a-z0-9\-])+                    # Don t allow anything too funky like entities
                        \.                               # require at least 1 dot
!                       [a-z0-9]([a-z0-9\.\-])+          # Don t allow anything too funky like entities
                        (:[0-9]+)?                       # optional port specification
                        ~ix', $url, $match) )
                { // Cannot validate URL structure

But, I think that this way is not so smart.
I hope someone to write more useful regular expressions for validate URL.

Thanks.

2 Apr 14, 2008 05:52

What I wrote has a probrem though it works...

Here is what I corrected.


*** _url.funcs.php.orig	Thu Mar 20 22:44:36 2008
--- _url.funcs.php	Mon Apr 14 12:45:05 2008
***************
*** 96,104 ****
  			://                              # authorize absolute URLs only ( // not present in clsid: -- problem? ; mailto: handled above)
  			(\w+(:\w+)?@)?                   # username or username and password (optional)
  			( localhost |
! 					[a-z0-9]([a-z0-9\-])+            # Don t allow anything too funky like entities
  					\.                               # require at least 1 dot
! 					[a-z0-9]([a-z0-9.\-])+           # Don t allow anything too funky like entities
  			)
  			(:[0-9]+)?                       # optional port specification
  			[^ ]*                            # allow no space
--- 96,104 ----
  			://                              # authorize absolute URLs only ( // not present in clsid: -- problem? ; mailto: handled above)
  			(\w+(:\w+)?@)?                   # username or username and password (optional)
  			( localhost |
! 					[a-z0-9]([a-z0-9\-])*            # Don t allow anything too funky like entities
  					\.                               # require at least 1 dot
! 					[a-z0-9]([a-z0-9\.\-])+          # Don t allow anything too funky like entities
  			)
  			(:[0-9]+)?                       # optional port specification
  			[^ ]*                            # allow no space

Thanks.

cress_cc wrote:

Hello, all.
# Excuse my poor English. :(

When an article is posted, the error message is shown like following:

Found invalid URL: Invalid URL format (http://r.gnavi.co.jp/b358700/).

I am afraid that regular expressions are wrong at "inc/_core/_url.funcs.php".
So, I made it correct.


*** _url.funcs.php.orig Mon Jan 21 10:35:24 2008
--- _url.funcs.php      Sun Mar 16 02:14:33 2008
***************
*** 88,96 ****
                        ([a-z][a-z0-9+.\-]*)             # scheme
                        ://                              # authorize absolute URLs only ( // not present in clsid: -- problem? ; mailto: handled above)
                        (\w+(:\w+)?@)?                   # username or username and password (optional)
!                       [a-z0-9]([a-z0-9\-])+            # Don t allow anything too funky like entities
                        \.                               # require at least 1 dot
!                       [a-z0-9]([a-z0-9.\-])+           # Don t allow anything too funky like entities
                        (:[0-9]+)?                       # optional port specification
                        ~ix', $url, $match) )
                { // Cannot validate URL structure
--- 88,96 ----
                        ([a-z][a-z0-9+.\-]*)             # scheme
                        ://                              # authorize absolute URLs only ( // not present in clsid: -- problem? ; mailto: handled above)
                        (\w+(:\w+)?@)?                   # username or username and password (optional)
!                       ([a-z0-9\-])+                    # Don t allow anything too funky like entities
                        \.                               # require at least 1 dot
!                       [a-z0-9]([a-z0-9\.\-])+          # Don t allow anything too funky like entities
                        (:[0-9]+)?                       # optional port specification
                        ~ix', $url, $match) )
                { // Cannot validate URL structure

But, I think that this way is not so smart.
I hope someone to write more useful regular expressions for validate URL.

Thanks.

3 Apr 14, 2008 16:16

Thanks for reporting. will be fixed in 2.4.2 and 2.5.0

5 Aug 25, 2008 13:29

Only with IE6 under winXP :

when i go to http://vajra.be/
or to http://vajra.be/admin/

i get

Not Found
The requested URL was not found on this server.
the code i have when i check the source is :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
  <head>
    <title>404 Not Found</title>
  </head>
  <body>
    <!--
      Error documents (pages) under 512 bytes
      are ignored by the IE5+ browser, this
      comment is used to bypass this size
      ......................................
      ......................................
      ......................................
    -->
    <h1>Not Found</h1>
    <p>The requested URL was not found on this server.</p>
    <hr/>
  </body>
</html>

this problem does not exist when visited with firefox or IE7

do you think i'm concerned by this problem ?
any chance to get this fixed ?

a lot of my visitors are still using IE6 and i dont know what to do at all..

6 Aug 25, 2008 16:04

buzzworkers wrote:

Only with IE6 under winXP :

when i go to http://vajra.be/
or to http://vajra.be/admin/

i get

Not Found
The requested URL was not found on this server.
the code i have when i check the source is :

I get a "forbidden" error ( 403 or summat ), but this works in IE6 XP pro http://vajra.be/index.php

If it was me I'd be checking htaccess and validation and stuff.

¥


Form is loading...