Commit 2f9f7ac8 authored by Melissa Draper's avatar Melissa Draper
Browse files

Fix the spreadsheet filter again (bug #843588)

This adds a new regex that catches the new format. Addendum
to 8c1316f3

 in which "id=" changed
to "key=", this patch covers spreadsheets where google has now
changed the url from "/pub." to "/ccc."

Change-Id: Id2c013257ae801e251b8b8cd9fb1fcc10a7c933b
Signed-off-by: default avatarMelissa Draper <>
parent ca0c79cd
......@@ -157,7 +157,7 @@ class PluginBlocktypeGoogleApps extends SystemBlocktype {
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the document
'match' => '#.*[a-zA-Z0-9\_\-\.\/]*)spreadsheet/pub.*key=([a-zA-Z0-9\_\-]+).*#',
'match' => '#.*[a-zA-Z0-9\_\-\.\/]*)spreadsheet/.*key=([a-zA-Z0-9\_\-]+).*#',
'url' => $httpstr . '://$1spreadsheet/pub?key=$2',
'type' => 'iframe',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment