Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv6621
Modified Files:
NEWS serendipity_admin_image_selector.php
Log Message:
RSS feeds didn't validate when relative links where used within a blog
entry. The s9y image selector returned relative links. Fixed.
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- NEWS 30 Sep 2003 21:21:59 -0000 1.28
+++ NEWS 30 Sep 2003 21:40:15 -0000 1.29
@@ -2,6 +2,7 @@
Version 0.3 (October 1, 2003)
------------------------------------
+ * Fixed links to images now containing absolute URI to maintain RSS-feed validity. Relative URIs are not allowed/visible within RSS feeds. (garvinhicking)
* Fixed problem with escaping single quotes during installation (tomsommer)
* Fixed problem with dual-trailing slashes in paths during installation (tomsommer)
* Configuration/installation will now save the current s9y version to the config file... Thereby allowing upgrades at a later point (tomsommer)
Index: serendipity_admin_image_selector.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_image_selector.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- serendipity_admin_image_selector.php 8 Aug 2003 10:00:18 -0000 1.10
+++ serendipity_admin_image_selector.php 30 Sep 2003 21:40:15 -0000 1.11
@@ -98,9 +98,9 @@
switch ($serendipity['GET']['step']) {
case '1':
$f = serendipity_parseFileName($serendipity["GET"]["image"]);
- $imgsrc = $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $f[0] . '.' . $serendipity['thumbSuffix'] . '.' . $f[1];
- $imgName = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $serendipity['GET']['image'];
- $thumbName = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $f[0] . '.' . $serendipity['thumbSuffix'] . '.' . $f[1];
+ $imgsrc = $serendipity['baseURL'] . $serendipity['uploadPath'] . $f[0] . '.' . $serendipity['thumbSuffix'] . '.' . $f[1];
+ $imgName = $serendipity['baseURL'] . $serendipity['uploadHTTPPath'] . $serendipity['GET']['image'];
+ $thumbName = $serendipity['baseURL'] . $serendipity['uploadHTTPPath'] . $f[0] . '.' . $serendipity['thumbSuffix'] . '.' . $f[1];
?>
<script type="text/javascript" language="JavaScript" src="<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity_define.js.php"></script>
<script type="text/javascript" language="Javascript" src="<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity_editor.js"></script>
@@ -131,7 +131,7 @@
<br />
<input type="radio" name="serendipity[isLink]" checked="checked" /> <?php echo I_WANT_NO_LINK; ?><br />
<input type="radio" name="serendipity[isLink]" /> <?php echo I_WANT_IT_TO_LINK; ?>
- <input type="text" name="serendipity[url]" size="30" value="<?php echo $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $serendipity['GET']['image']; ?>" onfocus="value='';" /><br />
+ <input type="text" name="serendipity[url]" size="30" value="<?php echo $serendipity['baseURL'] . $serendipity['uploadPath'] . $serendipity['GET']['image']; ?>" onfocus="value='';" /><br />
<br />
<input type="button" value="<?php echo BACK; ?>" onClick="history.go(-1);" />
|