Version Description
- Fixed: File URL containing tilde (~) considered invalid (thanks mjurek)
Download this release
Release Info
Developer | k3davis |
Plugin | Google Doc Embedder |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.3
- functions.php +10 -1
- gviewer.php +1 -1
- readme.txt +4 -1
functions.php
CHANGED
@@ -16,7 +16,16 @@ function getDefaults() {
|
|
16 |
|
17 |
function validLink($link) {
|
18 |
|
19 |
-
$urlregex = "^https
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
if (eregi($urlregex, $link)) {
|
22 |
return true;
|
16 |
|
17 |
function validLink($link) {
|
18 |
|
19 |
+
$urlregex = "^(https?://)"
|
20 |
+
. "?(([0-9A-Za-z_!~*'().&=+$%-]+: )?[0-9A-Za-z_!~*'().&=+$%-]+@)?" //user@
|
21 |
+
. "(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP- 199.194.52.184
|
22 |
+
. "|" // allows either IP or domain
|
23 |
+
. "([0-9A-Za-z_!~*'()-]+\.)*" // tertiary domain(s)- www.
|
24 |
+
. "([0-9A-Za-z][0-9A-Za-z-]{0,61})?[0-9A-Za-z]\." // second level domain
|
25 |
+
. "[A-Za-z]{2,6})" // first level domain- .com or .museum
|
26 |
+
. "(:[0-9]{1,4})?" // port number- :80
|
27 |
+
. "((/?)|" // a slash isn't required if there is no file name
|
28 |
+
. "(/[0-9A-Za-z_!~*'().;?:@&=+$,%#-]+)+/?)$";
|
29 |
|
30 |
if (eregi($urlregex, $link)) {
|
31 |
return true;
|
gviewer.php
CHANGED
@@ -5,7 +5,7 @@ Plugin Name: Google Doc Embedder
|
|
5 |
Plugin URI: http://davismetro.com/gde/
|
6 |
Description: Lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer.
|
7 |
Author: Kevin Davis
|
8 |
-
Version: 1.7.
|
9 |
*/
|
10 |
|
11 |
/* Copyright 2009 Kevin Davis. E-mail: kev@tnw.org
|
5 |
Plugin URI: http://davismetro.com/gde/
|
6 |
Description: Lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer.
|
7 |
Author: Kevin Davis
|
8 |
+
Version: 1.7.3
|
9 |
*/
|
10 |
|
11 |
/* Copyright 2009 Kevin Davis. E-mail: kev@tnw.org
|
readme.txt
CHANGED
@@ -57,11 +57,14 @@ That's not a question ;) but if you have any particular ideas on further develop
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
= 1.7.2 =
|
61 |
* Removed: toolbar button options (Google prevents this from working, sorry)
|
62 |
|
63 |
= 1.7.1 =
|
64 |
-
* Fixed: Misleading error message if file= attribute not used
|
65 |
* Fixed: Bug in curl header may cause false "not found" error
|
66 |
|
67 |
= 1.7 =
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 1.7.3 =
|
61 |
+
* Fixed: File URL containing tilde (~) considered invalid (thanks mjurek)
|
62 |
+
|
63 |
= 1.7.2 =
|
64 |
* Removed: toolbar button options (Google prevents this from working, sorry)
|
65 |
|
66 |
= 1.7.1 =
|
67 |
+
* Fixed: Misleading error message if file= attribute not used (thanks ersavla)
|
68 |
* Fixed: Bug in curl header may cause false "not found" error
|
69 |
|
70 |
= 1.7 =
|