Author:
buzzomatic
Version:
1.1.0
Released:
21 November 2011
Category:
Other, and Workflow

New#8: Does not like dashes in URL's

Saving an entry fails if you have a dash (-) in your URL and a “Source is not a valid URL” error is returned.

This looks like a PHP bug, in its filter_var function:

https://bugs.php.net/bug.php?id=51192

That thread claims that it's fixed as of PHP v5.3.3.

Since I'm importing from a URL that has a hyphen, and don't feel like bothering the sys admins to update PHP, I just commented out the URL verification condition in content.importers.php:

else if (!filtervar($fields['source'], FILTERVALIDATE_URL)) { ... }

(line 268 - 270 in my repo).

This issue should probably be closed, as it's a fixed PHP bug.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details