Skip to content

Commit

Permalink
Fixes for #6224 , #631 and #638
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Smith committed Sep 2, 2010
1 parent 0288c5c commit 2aac0ee
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gtd_constants.inc.php
@@ -1,5 +1,5 @@
<?php
define('_GTD_REVISION',615);
define('_GTD_REVISION',616);
define('_GTD_VERSION','0.8z.09'); // DATABASE version
define('_GTDPHP_VERSION','0.9beta'); // gtd-php version, as per the TRAC system

Expand Down
17 changes: 12 additions & 5 deletions gtdfuncs.inc.php
Expand Up @@ -183,12 +183,19 @@ function makeclean($textIn,$stripSlashes=false) {
$cleaned=array();
foreach ($textIn as $line) $cleaned[]=makeclean($line);
} else {
if ($stripSlashes) $textin = stripslashes($textIn);
if ( version_compare( PHP_VERSION,'5.2.3', '>=' ) ) {
// htmlentities doubleEncode (4th param) needs PHP 5.2.3 or higher
$cleaned=htmlentities( $textIn, ENT_QUOTES,
$_SESSION['config']['charset'], FALSE );
} else {
$cleaned=htmlentities(
($stripSlashes) ? stripslashes($textIn) : $textIn,
ENT_QUOTES,
$_SESSION['config']['charset'],
FALSE );
}
html_entity_decode($textIn, ENT_QUOTES,$_SESSION['config']['charset']),
ENT_QUOTES,
$_SESSION['config']['charset'] );
}
}

return $cleaned;
}
//-------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions gtdfuncs.js
Expand Up @@ -908,6 +908,12 @@ GTD.ParentSelector.prototype.gotparent=function gtd_ps_gp(id,title,type,typename
attr( { href: "itemReport.php?itemId="+id, title: "view parent" } ) ) ).
append( $( "<td>" ).text( typename ).append( input ) ).
appendTo( $("#parentlist") );

$("#parenttable").
after( $("<p>").
addClass( "warning" ).
text( "changes are not yet saved" ) ).
next(".warning").next(".warning").remove();
};
// -------------------------------------------------------------------------
GTD.ParentSelector.prototype.makeline=function gtd_ps_ml(id,title,type,typename,i,useTypes,onetype) {
Expand Down
2 changes: 1 addition & 1 deletion listItems.inc.php
Expand Up @@ -110,7 +110,7 @@
*/
// default list of fields
$dispArray=array(
'parent'=>'parents'
'parent'=>'Parents'
,'type'=>'type'
,'flags'=>'!'
,'NA'=>'NA'
Expand Down
2 changes: 1 addition & 1 deletion processItems.php
Expand Up @@ -569,7 +569,7 @@ function nextPage() { // set up the forwarding to the next page
break;

default :
$nextURL=$tst;
$nextURL = (is_array($tst)) ? $tst[0] : $tst;
break;
}
log_value('referrer',$updateGlobals['referrer']);
Expand Down

0 comments on commit 2aac0ee

Please sign in to comment.